Search code examples
image-processingimagej

How to disable automatic adjustment of brightness/contrast when creating a stack of images


I have a large number of images that form time series, but they vary in brightness and contrast significantly. It's very easy to adjust the brightness/contrast on a per image basis, however, when I create an ImageStack with a few of them, the whole brightness/contrast gets auto adjusted, based on the top image.

So, is there a way to disable this automatic adjustment?


Solution

  • There is a distinction is between thresholding and applying a LUT although either could produce the same effect. The ImageProcessor class contains methods to set both the LUT and thresholding. You should be able to turn off the auto thresholding from this class too.

    Since a separate ImageProcessor is associated with each slice in your stack you can apply any LUT or thresholding (provided they aren't colour) to each slice.