dwv.math. ROI

new ROI()

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

Methods

addPoint(point)

Add a point to the ROI.

Parameters:
NameTypeDescription
pointdwv.math.Point2D

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) → {dwv.math.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: 
dwv.math.Point2D