histogram equalization with exclusion of intensity above a given threshold

Hello,

I would like to perform histogram equalization on an image, but would like to exclude intensity values greater than a maximum threshold value from the equalization calculation (e.g. I have a stent embedded in soft tissue that I do not want to contribute to the intensity distribution). From what I can tell the AdaptiveHistogramEqualizationImageFilter() can be applied only to a whole image and not to a masked image. How do you suggest I accomplish this?

Regards,
Tia

Hi Tia,

One option is to replace the stent regions with itk::RandomImageSource content before running the adaptive histogram equalization image filter.

HTH,
Matt

clever! Thanks!

1 Like