problem recording "Apply" from Threshold window

Posted by Aryeh Weiss on
URL: http://imagej.273.s1.nabble.com/problem-recording-Apply-from-Threshold-window-tp5022278.html

If I record while doing applying a threshold to an image , what I get is
imp.duplicate().

Here is a javascript recording of the buttons on that window:

imp = IJ.openImage("http://imagej.nih.gov/ij/images/blobs.gif");
IJ.setAutoThreshold(imp, "Default dark");
IJ.setRawThreshold(imp, 0, 125, null);
IJ.resetThreshold(imp);
IJ.setAutoThreshold(imp, "Default dark");
imp2 = imp.duplicate();  // recorded after pressing Apply in the
Threshold window

The bottom line is when I pressed "Apply"
This happens regardless of which scripting language (eg IJ Macro) is
selected.
It also happend if I run "Convert to Mask" directly from the Command Finder

System: Macos 10.14.5
Java: 1.8.0_144
ImageJ 1.52p61

Is this only me, or have others seen this?

--aryeh

--
Aryeh Weiss
Faculty of Engineering
This happens
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051


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