FUNCTION REFERENCE

imoverlay

Burn a binary mask into an image.

Burn a binary mask into an image.

Syntax

B = imoverlay(A, BW, color)

Returns uint8 RGB. Any nonzero mask value selects a pixel. Mask dimensions must match the grayscale or RGB image. color defaults to yellow and accepts RGB triplets, color names, short names and hex codes.

Example

imoverlay(uint8([100 100;100 100]), [0 1;1 0], 'red')

Differences from MATLAB: None for supported forms.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.