2013/8/2 aelalaily <
[hidden email]>:
> ImageStack inputstack = imp.getStack();
> ImageStack stack = new ImageStack();
> stack = inputstack;
Note that by assigning your variables this way, this is equivalent to:
ImageStack inputstack = imp.getStack();
ImageStack stack = new ImageStack();
So, both variables are pointing to the same object (the original
image). You are not actually duplicating your original stack, which I
guess is what you intended to do. Probably this can be solved this
way:
ImageStack inputstack = imp.getStack();
ImagePlus target = imp.duplicate();
ImageStack stack = target.getStack();
Now you are duplicating your original image and the modifications you
make on the "stack" object will not affect it.
Best,
José.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html