2-D image flat-field correction
When I
is an RGB image, then imflatfield
converts the image to the HSV color space using rgb2hsv
and applies the flat-field correction to the HSV Value channel. The
image is converted back to RGB color space by using hsv2rgb
.
If you specify a mask
, then imflatfield
dilates the mask and pads the image boundaries to reduce edge artifacts during the
flat-field estimation.