Function: getCalibratedLengthUnitsAndScale()
getCalibratedLengthUnitsAndScale(
image
,handles
):object
Extracts the calibrated length units, area units, and the scale for converting from internal spacing to image spacing.
Parameters
• image: any
to extract the calibration from
• handles: any
to detect if spacing information is different between points
Returns
object
Object containing the units, area units, and scale
areaUnit
areaUnit:
string
scale
scale:
number
unit
unit:
string