Re: Copying an 8-bit image
Posted by
Michael Schmid on
Nov 09, 2010; 1:45pm
URL: http://imagej.273.s1.nabble.com/Copying-an-8-bit-image-tp3686474p3686476.html
Hi Florian,
you are right, it should not work with other data types either,
ImagePlus.setStack should simply put the same image data into the new
image without duplicating them, irrespective of image type.
But you mention converting to 8 bits, maybe it is related to that? Of
course, the 8-bit data are different from the original 16-bit or 32-
bit data, so modifying the 8-bit images cannot affect the original data.
Michael
________________________________________________________________
On 9 Nov 2010, at 11:25, Florian Leitner wrote:
> Hi Michael,
>
> thank you for your answer.
> Now I use ij.plugins.Duplicator.run(ImagePlus imp) and it works fine.
>
> I understand your explanation but I still don't get it why it
> worked with all image types except 8-bit images. According to my
> understanding it should not have worked with any image types
> correctly?
>
> Thanks again,
> Florian