This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getColor

Get color used to draw ROI object

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

Syntax

color = getColor(h)

Description

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