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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.