RescaleSlopeAndIntercept

dwv.image. RescaleSlopeAndIntercept

new RescaleSlopeAndIntercept(slope, intercept)

Source:

Rescale Slope and Intercept

Parameters:
Name Type Description
slope number

The slope of the RSI.

intercept number

The intercept of the RSI.

Methods

apply(value) → {number}

Source:

Apply the RSI on an input value.

Parameters:
Name Type Description
value number

The input value.

Returns:

The value to rescale.

Type
number

equals(rhs) → {boolean}

Source:

Check for RSI equality.

Parameters:
Name Type Description
rhs object

The other RSI to compare to.

Returns:

True if both RSI are equal.

Type
boolean

getIntercept() → {number}

Source:

Get the intercept of the RSI.

Returns:

The intercept of the RSI.

Type
number

getSlope() → {number}

Source:

Get the slope of the RSI.

Returns:

The slope of the RSI.

Type
number

isID() → {boolean}

Source:

Is this RSI an ID RSI.

Returns:

True if the RSI has a slope of 1 and no intercept.

Type
boolean

toString() → {string}

Source:

Get a string representation of the RSI.

Returns:

The RSI as a string.

Type
string