Login  Register

Re: Convert from 8-bit to 16-bit problems

Posted by Krs5 on Mar 27, 2015; 8:31am
URL: http://imagej.273.s1.nabble.com/Convert-from-8-bit-to-16-bit-problems-tp5012178p5012202.html

Hi Gabriel and Wayne,

Wayne, many thanks for the fix.

Gabriel, Indeed. Had forgotten to check the effect of 'Scale when converting' on the second macro. It does the trick.

Best wishes

Kees

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Gabriel Landini
Sent: 26 March 2015 10:27
To: [hidden email]
Subject: Re: Convert from 8-bit to 16-bit problems

On Wednesday 25 Mar 2015 23:14:27 Straatman, Kees wrote:
> run("Confocal Series (2.2MB)");
> makeRectangle(130, 224, 64, 66);
> run("Measure");
> run("16-bit");
> run("Measure");
> run("8-bit");
> run("Measure");
> run("16-bit");
> run("Measure");

Hi Kees,
If you untick the option 'Scale When Converting', then the subsequent conversions between 8 and 16 bit seem to be OK in the latest build, but the first conversion to 16 bit returns a different value that the original 8 bit.

I am guessing here that it might be related to the bin size of the histogram (which is set to 0.812) and that the Measure command uses the histogram (which now are slightly different due to the different bin sizes) to compute the average?

However I have no explanation why the maximum greyscale is so different between the original 8bit (187) and the 16 bit (207) versions.

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html