| [mmiwatershed] [Up] [mmlabel] | Measurements |
| User Feedback |
Finds the histogram of the image f and returns the result in the column vector h. For binary image the vector size is 2, for gray-scale uint8 and uint16 images, the vector size is the maximum pixel value plus one. h(1) gives the number of pixels with value 0.

function h = mmhistogram_equ(f)
m=max(f(:));
h=zeros(m+1,1);
for i=1:m+1
h(i)=length(find(f==(i-1)));
end
| [mmiwatershed] [Up] [mmlabel] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |