Login  Register

Re: setting contrast of a multichannel image

Posted by jmutterer on Jun 17, 2021; 5:47pm
URL: http://imagej.273.s1.nabble.com/setting-contrast-of-a-multichannel-image-tp5024743p5024744.html

Hi Michael,
You can use
Stack.setChannel(c);
Then setMinAndMax(min, max);

Jerome




Le jeu. 17 juin 2021 à 18:58, Cammer, Michael <
[hidden email]> a écrit :

> Would you please help with setting the contrast of a multichannel image
> and propagating to the other n channels of the image in a macro.
>
> When I click the box in the B&C window, the option to apply to the other
> channels is not recorded.
>
> I could write my own function to do this, but is there a way to use syntax
> added to setMinAndMax(0, 15117) to achieve this?
>
> Thank you!
>
> Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
> NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY
> 10016
> Office: 646-501-0567 Cell: 914-309-3270  [hidden email]
> <mailto:[hidden email]>
> http://nyulmc.org/micros  http://microscopynotes.com/
> Acknowledgement in your publications and presentations of work performed
> in the Microscopy Core plays a vital role in securing support and the
> funding necessary to maintain and operate this valuable research resource.
>  For publications that were made possible by work performed in the core,
> please use the acknowledgement statement "We thank the NYU Langone
> Microscopy Core for experimental and technical support" and include
> required grant numbers as listed here
> http://microscopynotes.com/ilabnyu/acknowledgements2017.pdf
> Please also consider staff for co-authorship if they played a key role in
> the study.
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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