Adjust threshold LUT

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

Adjust threshold LUT

Gabriel Landini
Hi,
Does anybody have a suggestion on how to set the Over/Under LUT or Red LUT of
the Adjust Threshold dialog from a macro?
The three options (red, b/w, over/under) do not seem to be recordable.

Thanks

Gabriel
Reply | Threaded
Open this post in threaded view
|

Re: Adjust threshold LUT

dscho
Hi,

On Tue, 21 Oct 2008, Gabriel Landini wrote:

> Does anybody have a suggestion on how to set the Over/Under LUT or Red
> LUT of the Adjust Threshold dialog from a macro? The three options (red,
> b/w, over/under) do not seem to be recordable.

In http://rsb.info.nih.gov/ij/developer/macro/functions.html#setThreshold 
it says:

        Starting with v1.34g, there is an optional third argument that can
        be "red", "black & white", "over/under" or "no color".

Hth,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: Adjust threshold LUT

Rocco D'Antuono
Hi, is possible set a display mode as default?
I mean, if you execute the following lines:

setThreshold(120,255,"over/under");
run("Threshold...");

a threshold is correctly applied with "over/under" display mode, with the correct value range, but when you want to modify the values (clicking on "Threshold" window), the display mode change to the latest used one;
why IJ doesn't keep "over/under" (as I set in the first line of code)?

Thanks,
Rocco
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/