Skip to main content

Function: getCalibratedLengthUnitsAndScale()

getCalibratedLengthUnitsAndScale(image, handles): object

Extracts the calibrated length units, area units, and the scale for converting from internal spacing to image spacing.

A region whose two axes have different units, for example an ECG region in ms and mV, gives no length calibration, so the length is in pixels. UltrasoundDirectionalTool measures along one axis of such a region.

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

scaleY​

scaleY: number

scaleZ​

scaleZ: number

unit​

unit: string

volumeUnit​

volumeUnit: string

Defined in​

tools/src/utilities/getCalibratedUnits.ts:71