Main Content

setClosed

Set closure behavior of ROI object

setClosed is not recommended. With the new ROIs, use the Closed property instead. For more information, see Compatibility Considerations.

Description

setClosed(h,TF) sets whether the ROI object, h, is closed after the last point is selected.

Input Arguments

collapse all

ROI object, specified as an imfreehand or impoly object.

ROI object is closed, specified as true or false. When set to true, a straight line connect the endpoints of the ROI object to create a closed region. If set to false, the endpoints are not connected and the region is open.

Data Types: logical

Version History

Introduced in R2007b

expand all