Save B&C values after running "Enhance Contrast"

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

Save B&C values after running "Enhance Contrast"

mmettlen
Hi,
Is an ImageJ macro able to extract and save the min/max displayed values for each channel after running e.g.:
 
setSlice(1);
run("Enhance Contrast", "saturated=0.35");
setSlice(2);
run("Enhance Contrast", "saturated=0.35");

Ths!
Reply | Threaded
Open this post in threaded view
|

Re: Save B&C values after running "Enhance Contrast"

Olivier Burri
Hi

You can just use
getMinAndMax(min, max)
Returns the minimum and maximum displayed pixel values (display range). See the DisplayRangeMacros for examples.

http://imagej.nih.gov/ij/developer/macro/functions.html

Best

Oli




> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> mmettlen
> Sent: Tuesday, March 10, 2015 17:27
> To: [hidden email]
> Subject: Save B&C values after running "Enhance Contrast"
>
> Hi,
> Is an ImageJ macro able to extract and save the min/max displayed values for
> each channel after running e.g.:
>
> setSlice(1);
> run("Enhance Contrast", "saturated=0.35"); setSlice(2); run("Enhance
> Contrast", "saturated=0.35");
>
> Ths!
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Save-B-C-
> values-after-running-Enhance-Contrast-tp5011937.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: Save B&C values after running "Enhance Contrast"

mmettlen
In reply to this post by mmettlen
Exactly what I needed! Thanks!