Get color used to draw ROI object

getColor is not recommended. Use one of the ROI classes instead, described in ROI Creation Overview.


color = getColor(h)


color = getColor(h) gets the color used to draw the ROI object h.

Input Arguments

collapse all

ROI object, specified as an imellipse, imfreehand, imline, impoint, impoly, or imrect object.

Output Arguments

collapse all

RGB color value, returned as a 3-element numeric vector.

See Also


Introduced before R2006a