MONAI icon indicating copy to clipboard operation
MONAI copied to clipboard

CLAHE Transform

Open rdslater opened this issue 3 months ago • 7 comments

Is your feature request related to a problem? Please describe. I was wondering if I could attempt to implement a CLAHE transform into the MONAI library or if one is being worked. Contrast Limited Adaptive Histogram Equalization is widely used in medical 2D imaging, especially Ophthalmology. While other libraries do have implementations and is possible to do via Lambda transformation, perhaps a tried and tested transform could be developed for MONAI

Describe the solution you'd like I imagine it would fall under an Intensity Transform and follow the pattern set there. Both Vanilla and Dictionary

Describe alternatives you've considered It is entirely possible to do this as a lambda transform but with more and more people utilizing MONAI, it would be a gentler introduction for a common transform.

Additional context My First issue/feature request--I am actually planning to do the coding, but have no contributed much to open source, so probably lots of questions (I did try to RTFM)

rdslater avatar Aug 03 '26 23:08 rdslater

ITK is bundled with MONAI and includes the power law adaptive histogram equalization filter that emulates clahe and other filters. See https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1AdaptiveHistogramEqualizationImageFilter.html and https://ieeexplore.ieee.org/document/841534/

Would wrapping it into a MONAI transform accomplish what you want?

aylward avatar Aug 03 '26 23:08 aylward

Yes that would be fine. (TBH I was just trying to get started contributing on something)

rdslater avatar Aug 04 '26 18:08 rdslater

That is outstanding! If you wanted to wrap that filter (using itk or sitk) into a MONAI transform, it would be greatly appreciated. It is a common processing applied to mammography and others as you noted.

aylward avatar Aug 04 '26 18:08 aylward

Hi @aylward @rdslater — checking in since it's been a few weeks. @rdslater, are you still planning to wrap the ITK/SimpleITK adaptive histogram equalization filter into a MONAI transform? Happy to pick it up if not — no worries either way, just want to avoid duplicate work.

SID-6921 avatar Sep 02 '26 00:09 SID-6921

Hi! I'm interested in contributing to MONAI and would love to help implement the adaptive histogram equalization transform discussed here. I noticed there was already interest from other contributors, so I wanted to check whether anyone is actively working on it before starting. I'd be happy to coordinate and take on a specific part if useful. Thank you!

mdtasnimulhoque avatar Oct 09 '26 18:10 mdtasnimulhoque

With my job search this has fallen to the back burner and to be honest I have not been working it. @mdtasnimulhoque feel free to take a crack.

rdslater avatar Oct 09 '26 18:10 rdslater

Hi! Just checking if @mdtasnimulhoque is working on this issue. if not, I'd be more than happy to write the wrapper.

Jai-Shankar-K-N avatar Oct 16 '26 13:10 Jai-Shankar-K-N