ROI

dwv.math. ROI

new ROI()

Source:

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

Methods

addPoint(point)

Source:

Add a point to the ROI.

Parameters:
Name Type Description
point dwv.math.Point2D

The Point2D to add.

addPoints(rhs)

Source:

Add points to the ROI.

Parameters:
Name Type Description
rhs Array

The array of POints2D to add.

getLength() → {number}

Source:

Get the length of the point list.

Returns:

The length of the point list.

Type
number

getPoint(index) → {dwv.math.Point2D}

Source:

Get a point of the list at a given index.

Parameters:
Name Type Description
index number

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

Returns:

The Point2D at the given index.

Type
dwv.math.Point2D