Login  Register

Re: Density calibration is lost when duplicating images

Posted by Wayne Rasband-2 on Jul 04, 2018; 9:55pm
URL: http://imagej.273.s1.nabble.com/Density-calibration-is-lost-when-duplicating-images-tp5020903p5020906.html

> On Jul 4, 2018, at 6:26 AM, Stein Rørvik <[hidden email]> wrote:
>
> Here is a bug that has appeared recently:
>
> When duplicating a 8-bit or 16-bit density calibrated image, the density calibration is lost.
> The spatial calibration is not lost.
> This also happens when duplicating slices from stacks.
> The bug has been present since 1.52d. It was not present in 1.52c.

This 1.52d regression is fixed in the latest ImageJ daily build (1.52e29).

-wayne

> Here is a test macro reproducing the problem:
>
> run("Clear Results");
> run("CT (420K, 16-bit DICOM)");              //this image is both spatially and density calibrated
> run("Set Measurements...", "area mean standard modal min display redirect=None decimal=4");
> run("Measure");         //results are ok
> run("Duplicate...", " ");
> run("Measure");         //results are no longer density calibrated; the spatial calibration is still ok
> selectWindow("Results");
>
> Look at the Mean value, the correct value should be negative for this image.
>
> Stein

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