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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.