Login  Register

Re: Apply threshold regression ?

Posted by Leon Espinosa-3 on Jan 23, 2015; 2:49pm
URL: http://imagej.273.s1.nabble.com/Apply-threshold-regression-tp5011312p5011322.html

Dear Wayne, I don't understand the behavioral difference between older versions of imagej and last (1.49m). The dialog box “Calculate threshold for each image” no longer appears (whatever the image I use). The command Process>Binary>Convert to Mask also does not give access to the “Calculate threshold for each image” option. Similarly the macro recorder produces different macros.
I tried with a sample image (MRI Stack) and ImageJ just openend and here are the results of the macro recorder:

--------
1.49m

run("MRI Stack (528K)");
setAutoThreshold("Default");
//run("Threshold...");
//setThreshold(0, 74);
setOption("BlackBackground", true);
run("Convert to Mask", "stack");

------------
1.47v

run("MRI Stack (528K)");
setAutoThreshold("Default");
//run("Threshold...");
setOption("BlackBackground", true);
run("Convert to Mask", "method=Default background=Light calculate black");


at least the macro made with version 1.47v also works with version 1.49m

Thank you very much for the help and all your work

All the best, Leon







Le 22 janv. 2015 à 23:00, Rasband, Wayne (NIH/NIMH) [E] a écrit :

>> On Jan 22, 2015, at 4:28 AM, Leon Espinosa <[hidden email]> wrote:
>>
>> Hello, it seems to me that in the latest versions of imagej have lost the dialogue box after push the "Apply" button in the "Set Threshold" window that allows to apply the threshold for a stack ("Method", "Calculate threshold for each image", "Background", etc).
>>
>> Otherwise, is there another command to calculate automatically the threshold for each slide in a stack (without a macro) ?
>
> Use the Process>Binary>Convert to Mask command. Make sure the image is not thresholded or you will not get the dialog with the “Calculate threshold for each image” option.
>
> -wayne
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html


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