Input image, specified as a 2-D grayscale image or 2-D RGB image.
Data Types: single | double | int16 | uint8 | uint16 | logical
BW — Mask image 2-D binary matrix
Mask image, specified 2-D binary matrix of the same size as the first two dimensions of image
A. For numeric input,
any nonzero pixels are considered to be 1 (true).
Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | logical
color — Color used for overlay MATLAB® color specification
Color used for the overlay, specified as a MATLAB color specification. For example, if
you want to specify the color red, you could use any
of the following specifications:
'red', 'r',
or [1 0 0].