The macro function getThreshold(lowerTh,upperTh) returns the lower and upper threshold values set in the threshold dialogue.
I then convert the values into a string and use the setMetadata("Info", string) function to add the values to the metadata for the current image. This way, the information is kept with the image for re-use if needed.
Hope this helps,
From: JP Dustin [mailto:[hidden email]]
Sent: 22 June 2017 18:55
To: [hidden email] Subject: Saving threshold values using macro
I have a macro for analyzing images and would like to add something to save threshold values for each image. Is this possible and does anyone know how to do it? Below is the entire macro I use: