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,
entropyfilt
uses two bins for logical arrays.entropyfilt
converts any other class touint8
for 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
I
is a grayscale image, then the values ofJ
can exceed the range [0, 1] that some Image Processing Toolbox™ functions expect for images of typedouble
. To passJ
as an input argument to these functions, use therescale
function to rescale the values ofJ
to 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.