problem recording "Apply" from Threshold window

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

problem recording "Apply" from Threshold window

Aryeh Weiss
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
Reply | Threaded
Open this post in threaded view
|

Re: problem recording "Apply" from Threshold window

Krs5
Dear Aryeh,

On a Windows 10 system I can reproduce this problem in javascript but not in  IJ Macro.

Best wishes

Kees

-----Original Message-----
From: Aryeh Weiss <[hidden email]>
Sent: 26 June 2019 09:19
To: [hidden email]
Subject: problem recording "Apply" from Threshold window

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("https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Fimages%2Fblobs.gif&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C07d52f13a9db40ba1cb408d6fa0f8000%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C636971341827496128&amp;sdata=1%2F06Ne5yiUHqiFVc5PYAId%2FgilnTmECbCltsFFFVc0s%3D&amp;reserved=0");
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: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C07d52f13a9db40ba1cb408d6fa0f8000%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C636971341827496128&amp;sdata=pCPWDNAeVNOET0YSmLIL062U811qoqPMhcgRAoSG8os%3D&amp;reserved=0

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