Adaptive Histogram Equalization for 3D images- long run-time


I’m running the AdaptiveHistogramEqualizationImageFilter() on a 3D image that is 512x512x197. Currently, the run-time for this histogram equalization is about three hours. Does anyone have an idea as to why it is taking this long and/or any recommendations on how to decrease this run-time?

Thanks in advance!

Hello Courtney,

Welcome to ITK! :sunflower:

The size of the local window has a large impact on the AdaptiveHistogramEqualizationImageFilter run time – try reducing this.

Also make sure you are running a Release build, and not a Debug build.


Hi Matt,

Thank you for your reply! Can the local window be controlled by the SetRadius() function?

Yes, exactly :-).