MATLAB: How to adjust the height of the histogram created by the IMHIST function in Image Processing Toolbox

Image Processing Toolbox

I would like to modify the maximum height of the histogram generated by the IMHIST function.

Best Answer

The ability to keep constant the maximum height of the histogram generated by IMHIST is not available in the Image Processing Toolbox.
The workaround is to first display the histogram and then set the y-limit of the axis:
I = imread('board.tif');
I = I(:,:,3);
imhist(I);
a = axis
a(4) = 2000;
axis(a)
Related Question