Local entropy of grayscale image
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
.
By default, entropyfilt
uses two bins for logical arrays.
entropyfilt
converts any other class to
uint8
for the histogram count calculation and uses 256
bins so that the pixel values are discrete and directly correspond to a bin
value.
[1] Gonzalez, R. C., R. E. Woods, and S. L. Eddins. Digital Image Processing Using MATLAB. New Jersey, Prentice Hall, 2003, Chapter 11.