Re: Trouble with ImagePlus.setSlice() method in ImageJ ver 1.37j
Posted by
dscho on
URL: http://imagej.273.s1.nabble.com/Trouble-with-ImagePlus-setSlice-method-in-ImageJ-ver-1-37j-tp3701968p3701969.html
Hi,
On Sun, 30 Jul 2006, Soft Aliance wrote:
> But the image canvas is not getting updated.
> ImagePlus imp = WindowManager.getCurrentImage();
> for(int CurSlice = 0 ; CurSlice < imp.getStackSize() ; CurSlice ++)
> {
> imp.setSlice(CurSlice);
You probably want to call "updateDisplay()" after this:
http://rsb.info.nih.gov/ij/developer/macro/functions.html#U> // IJ.wait(1000); //Commenting or uncommenting this line did not
> have any effect
> }
Hth,
Dscho