MATLAB: What is the difference between imadjust and histeq

histogram equalizationImage Processing Toolbox

Hello, friends. What are the differences between imadjust and histeq in Matlab, and how they work exactly.

Best Answer

imadjust linearly scales the histogram whereas histeq does not. Try both and look at the histograms of the outputs. Images will tend to look more natural with imadjust. histeq() is just one of those things that they teach you about in school but no one really ever uses because it makes the images look weird.
See my attached demos.