ROI

Region Of Interest shape. Note: should be a closed path.

Constructor

new ROI()

Methods

addPoint(point)

Add a point to the ROI.

Parameters:
NameTypeDescription
pointPoint2D

The Point2D to add.

addPoints(rhs)

Add points to the ROI.

Parameters:
NameTypeDescription
rhsArray

The array of POints2D to add.

getLength() → {number}

Get the length of the point list.

Returns:

The length of the point list.

Type: 
number

getPoint(index) → {Point2D}

Get a point of the list at a given index.

Parameters:
NameTypeDescription
indexnumber

The index of the point to get (beware, no size check).

Returns:

The Point2D at the given index.

Type: 
Point2D