setMinAndMax error

Posted by Adrián Villalba on
URL: http://imagej.273.s1.nabble.com/setMinAndMax-error-tp5019993.html

 Dear all,

I am trying to apply the following to code to my tiff image.

run("Subtract Background...", "rolling=50 light");
run("Unsharp Mask...", "radius=2 mask=0.60");
run("Gamma...", "value=0.95");
run("Color Balance...");
setMinAndMax(-43, 211);


The problem is with the setMinAndMax function, when i apply this code i am
asked to put manually my min and max (and what i want is to set
automatically the color balance in the red channel between -43 and 211, but
i do not know why i should do it manually)

Does anyone know how can i range automatically my red channel to these
values? Thank you in advance!


--

   - Adrián Villalba Felipe.
   https://es.linkedin.com/in/adrianvillalba

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