Re: Reloading/Reverting a stack
Posted by Juanjo Vega on Sep 28, 2010; 11:46am
URL: http://imagej.273.s1.nabble.com/Reloading-Reverting-a-stack-tp3686773p3686775.html
Hi,
On Mon, 2010-09-27 at 18:23 +0200, Johannes Schindelin wrote:
> Hi,
>
> On Mon, 27 Sep 2010, Juanjo Vega wrote:
>
> > "Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: [F
> > cannot be cast to [B"
>
> Typically, this means that you have a (byte[])ip.getPixels() somewhere,
> but that the ip is actually a FloatProcessor, not a ByteProcessor.
Sure, but even fixing it I can't revert or reload stacks. IJ.run(imp,
"Revert") doesn't work for stacks, but for single images it works
perfectly.
I'm still looking at the code to try to understand why it doesn't work.
Any tip or help will be welcome.
Thanks,
Juanjo