Login  Register

write macro functions that return values

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

write macro functions that return values

Christian Tischer
Hello,

for instance, the Macro Function

*getCursorLoc(x, y, z, modifiers)*
*
*
*writes values in x,z,y that can be accessed later by other macro functions.
*
*
*
*is it possible to write a plugin like this on my own?*
*
*
*specifically, one of my plugins obtains a file-and foldername and i would
like to "keep" those for later use in the macro in order to construct
filenames for images that i need to save.*
*
*
*Cheers, Tischi*
*
*
*
*
*
*
*
*

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

Re: write macro functions that return values

Arne Seitz
Hi Tischi,

maybe you can use the functions Prefs.set() and Prefs.get(). They allow you to write/read parameters to/from the IJ_Prefs.txt file. Maybe not an extremely elegant way but at least it used to work for me.

Cheers
Arne    

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Christian Tischer
Sent: lundi 17 septembre 2012 18:10
To: [hidden email]
Subject: write macro functions that return values

Hello,

for instance, the Macro Function

*getCursorLoc(x, y, z, modifiers)*
*
*
*writes values in x,z,y that can be accessed later by other macro functions.
*
*
*
*is it possible to write a plugin like this on my own?*
*
*
*specifically, one of my plugins obtains a file-and foldername and i would like to "keep" those for later use in the macro in order to construct filenames for images that i need to save.*
*
*
*Cheers, Tischi*
*
*
*
*
*
*
*
*

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

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

Apply threshold bug

Leon Espinosa-3
Hello, It seems that the "Calculate threshold for each image" option for "Apply" in the threshold adjustement uses always the default method. Applying the threshold to a fluorescence stack yields the same result with the different methods (Huang, Intermodes, etc.).
Thank you for help...

Leon Espinosa  (ImageJ 1.47c Mac OS 10.6.8)

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