entropyfilt
Local entropy of grayscale image
Description
returns the array J = entropyfilt(I)J, where each output pixel contains the
entropy value of the 9-by-9 neighborhood around the corresponding pixel in the input
image I.
For pixels on the borders of I,
entropyfilt uses symmetric padding. In symmetric padding, the
values of padding pixels are a mirror reflection of the border pixels in
I.
Examples
Input Arguments
Output Arguments
More About
Tips
By default,
entropyfiltuses two bins for logical arrays.entropyfiltconverts any other class touint8for the histogram count calculation and uses 256 bins so that the pixel values are discrete and directly correspond to a bin value.If the input image
Iis a grayscale image, then the values ofJcan exceed the range [0, 1] that some Image Processing Toolbox™ functions expect for images of typedouble. To passJas an input argument to these functions, use therescalefunction to rescale the values ofJto the range [0, 1].
References
[1] Gonzalez, R. C., R. E. Woods, and S. L. Eddins. Digital Image Processing Using MATLAB. New Jersey, Prentice Hall, 2003, Chapter 11.

