Login  Register

Re: Reloading/Reverting a stack

Posted by dscho on Sep 27, 2010; 4:23pm
URL: http://imagej.273.s1.nabble.com/Reloading-Reverting-a-stack-tp3686773p3686774.html

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.

Ciao,
Johannes