Re: Set and apply threshold on a 32-bit image in a macro
Posted by
John Oreopoulos on
URL: http://imagej.273.s1.nabble.com/Re-remove-noise-Iterative-deconvolution-tp3692100p3692104.html
I just found out there is a "NaN background" command which does the
trick after setting the threshold. Just in case anyone else needs to
do this in the future, here's the short macro commands that does what
I was describing:
selectWindow("Image");
setThreshold(0.00, 0.65);
run("NaN Background");
resetThreshold();
John Oreopoulos
On 17-Jun-09, at 12:42 PM, John Oreopoulos wrote:
> Dear ImageJ list,
>
> I've looked in the listserver archive about this topic but couldn't
> find anything conclusive. I have a 32-bit image on which I'd like
> to set a specific threshold range (0.00 to 0.65) in a macro and
> then have the macro perform automatically the same action as
> clicking "apply". A message checkbox usually appears with the title
> "NaN background" and I'd like to have this option set to true (box
> checked) and performed. I've tried using the standard threshold
> macro functions but they're not behaving the same as when I do this
> by hand in ImageJ. Any thoughts?
>
> John Oreopoulos