About AutoThreshold

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

About AutoThreshold

valeria_c
Hi everybody,

do you know if there is the possibility to set values for thresholding running a macro?
I would like to avoid the AutoThreshold and tell the macro which values it has to choose for the images I'm processing.

Thanks in advance.
Valeria
Reply | Threaded
Open this post in threaded view
|

Re: About AutoThreshold

Anda Cornea
I use:
setThreshold(xxx, yyy);

where xxx and yyy are the values wanted.

Cheers,

Anda

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of valeria_c
Sent: Monday, March 25, 2013 3:52 PM
To: [hidden email]
Subject: About AutoThreshold

Hi everybody,

do you know if there is the possibility to set values for thresholding running a macro?
I would like to avoid the AutoThreshold and tell the macro which values it has to choose for the images I'm processing.

Thanks in advance.
Valeria




--
View this message in context: http://imagej.1557.n6.nabble.com/About-AutoThreshold-tp5002413.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
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
|

Re: About AutoThreshold

valeria_c
So something like:

xxx = 0;
yyy = 0;

Dialog.addChoice("setThreshold x:", xxx);
Dialog.addChoice("setThreshold y:", yyy);

xxx = Dialog.getNumber();
yyy = Dialog.getNumber();

setThreshold(xxx,yyy);
Reply | Threaded
Open this post in threaded view
|

Re: About AutoThreshold

Jasvinder S Ahuja
In reply to this post by Anda Cornea
getStatistics(area, mean, min, max, std);
w=getNumber("What lower threshold do you wish to use image mean
="+mean+"min="+min+"max = "+max, w);


Is that what you are looking for.
Jasvinder

On Mon, Mar 25, 2013 at 7:07 PM, Anda Cornea <[hidden email]> wrote:

>
> I use:
> setThreshold(xxx, yyy);
>
> where xxx and yyy are the values wanted.
>
> Cheers,
>
> Anda
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of valeria_c
> Sent: Monday, March 25, 2013 3:52 PM
> To: [hidden email]
> Subject: About AutoThreshold
>
> Hi everybody,
>
> do you know if there is the possibility to set values for thresholding running a macro?
> I would like to avoid the AutoThreshold and tell the macro which values it has to choose for the images I'm processing.
>
> Thanks in advance.
> Valeria
>
>
>
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/About-AutoThreshold-tp5002413.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> 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
|

Re: About AutoThreshold

Anda Cornea
In reply to this post by valeria_c
It depends on your application, I guess.  I write the numbers into the macro so that there is no need to stop and input them for each analysis where they are expected to be the same.  

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of valeria_c
Sent: Monday, March 25, 2013 4:19 PM
To: [hidden email]
Subject: Re: About AutoThreshold

So something like:

xxx = 0;
yyy = 0;

Dialog.addChoice("setThreshold x:", xxx); Dialog.addChoice("setThreshold y:", yyy);

xxx = Dialog.getNumber();
yyy = Dialog.getNumber();

setThreshold(xxx,yyy);



--
View this message in context: http://imagej.1557.n6.nabble.com/About-AutoThreshold-tp5002413p5002415.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
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
|

Re: About AutoThreshold

valeria_c
I will try in this way and see if I obtain the result I'm searching!
Thank you!