Convert to Mask defaults changed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert to Mask defaults changed

Fred Damen
Greetings,

In release 1.52u14:
imp = IJ.createImage("HyperStack", "32-bit grayscale-mode", 512, 512, 1,
2, 1);
imp.setRoi(new OvalRoi(199,181,146,150));
IJ.run(imp, "Fill", "stack");
IJ.run(imp, "Convert to Mask", "method=Huang background=Default calculate");
IJ.run(imp, "Fill Holes", "stack");

left imp unchanged.

In release 1.53e14, you need to add the option "black" to "Convert to
Mask", or else imp becomes all white. I have not changed any options,
i.e., defaults, anywhere between it working in the old release and now
requiring the "black" option in the new release.  Are there any options
that effects this?  Should adding "black" to the "Convert to Mask" options
string work as described above in all releases?

Thanks,

Fred

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Convert to Mask defaults changed

Wayne Rasband-2
> On Sep 4, 2020, at 5:21 PM, Fred Damen <[hidden email]> wrote:
>
> Greetings,
>
> In release 1.52u14:
> imp = IJ.createImage("HyperStack", "32-bit grayscale-mode", 512, 512, 1,
> 2, 1);
> imp.setRoi(new OvalRoi(199,181,146,150));
> IJ.run(imp, "Fill", "stack");
> IJ.run(imp, "Convert to Mask", "method=Huang background=Default calculate");
> IJ.run(imp, "Fill Holes", "stack");
>
> left imp unchanged.
>
> In release 1.53e14, you need to add the option "black" to "Convert to
> Mask", or else imp becomes all white.

This regression is fixed in the 1.53e15 daily build.

-wayne

> I have not changed any options,
> i.e., defaults, anywhere between it working in the old release and now
> requiring the "black" option in the new release.  Are there any options
> that effects this?  Should adding "black" to the "Convert to Mask" options
> string work as described above in all releases?
>
> Thanks,
>
> Fred

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