Re: Merge

Posted by Nikos Katsikanis on
URL: http://imagej.273.s1.nabble.com/Merge-tp3703494p3703495.html

hmm thats strange, I've had similiar problems. I found that if you create
the imageplus and imageprocessor locally you can get things to work better.
You can have a global int and assign this to an id from a image you create
and use the window manager to get this id when you want to do something to
this imagew later.  eg

ImagePlus originalImage=WindowManager.getCurrentImage();
   id = originalImage.getID();

//then you can get this image locally by WindowManager.getImage(id)


also you could try the imageprocessor.copyBits method

hope this helps!