color threshold - ROI and values

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

color threshold - ROI and values

6:1135
Hi all,
I'm writing a macro and I need to threshold a color image :
 - the user open a color image ;
 - he trace an ROI ;
 - run("Color Threshold...");
 - waitForUser("threshold your image and click ok");
 
problems :
- the traced selection on the image disapear each time the user move a slider in the "color Threshold" panel
- I don't know how I can get the threshold values defined by the user when he click "ok"

I hope somebody can help me
 regards

Gilles
Reply | Threaded
Open this post in threaded view
|

Re: color threshold - ROI and values

Michael Schmid
Hi Gilles,

you can convert the selection to an overlay, then it will remain visible while thresholding the color image: Image>Overlay>Add Selection.

Michael
________________________________________________________________
On Apr 2, 2013, at 14:56, 6:1135 wrote:

> Hi all,
> I'm writing a macro and I need to threshold a color image :
> - the user open a color image ;
> - he trace an ROI ;
> - run("Color Threshold...");
> - waitForUser("threshold your image and click ok");
>
> problems :
> - the traced selection on the image disapear each time the user move a
> slider in the "color Threshold" panel
> - I don't know how I can get the threshold values defined by the user when
> he click "ok"
>
> I hope somebody can help me
> regards
>
> Gilles

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

Re: color threshold - ROI and values

6:1135
Hi Michael,
ok, it seems to be the only solution... thank you.

Do you know how I can get threshold cursors values to apply them to my
next images in a macro ?

Gilles

Le 02/04/2013 16:12, Michael Schmid a écrit :

> Hi Gilles,
>
> you can convert the selection to an overlay, then it will remain visible while thresholding the color image: Image>Overlay>Add Selection.
>
> Michael
> ________________________________________________________________
> On Apr 2, 2013, at 14:56, 6:1135 wrote:
>
>> Hi all,
>> I'm writing a macro and I need to threshold a color image :
>> - the user open a color image ;
>> - he trace an ROI ;
>> - run("Color Threshold...");
>> - waitForUser("threshold your image and click ok");
>>
>> problems :
>> - the traced selection on the image disapear each time the user move a
>> slider in the "color Threshold" panel
>> - I don't know how I can get the threshold values defined by the user when
>> he click "ok"
>>
>> I hope somebody can help me
>> regards
>>
>> Gilles
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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