Ierased = imerase(I,rect)
remove pixels of image I within the rectangular region defined by
rect and returns the image with the erased region,
Ierased.
Image with a region to be erased, specified as a numeric matrix representing a
grayscale image or a numeric array with three channels representing a color
image.
Size and position of the erase rectangle, specified as a 4-element numeric vector of
the form [xminyminwidthheight] or a Rectangle
object.
Fill value to apply to erased pixels, specified as one of these values.
Fill Value
Result
numeric scalar
Fill erased pixels of a grayscale or RGB image with the specified gray
value.
3-element numeric vector
Fill erased pixels of an RGB image with the specified color.
numeric matrix
Fill each erased pixel of a grayscale or RGB image with the corresponding
gray value in fillValue. The matrix specified by
fillValue must have the same height and width as the
erase rectangle, rect.
numeric array with 3 planes
Fill each erased pixel of an RGB image with the color in the corresponding
pixel of fillValue. The array specified by
fillValue must have the same height and width as the
erase rectangle, rect.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.