Skip to main content

Variable: calibratedPixelSpacingMetadataProvider

const calibratedPixelSpacingMetadataProvider: object

Simple metadataProvider object to store metadata for calibrated spacings. This can be added via cornerstone.metaData.addProvider(...) in order to store and return calibrated pixel spacings when metaData type is "calibratedPixelSpacing".

Type declaration

add()

add: (imageId, payload) => void

Adds metadata for an imageId.

Parameters

imageId: string

the imageId for the metadata to store

payload: IImageCalibration

the payload composed of new calibrated pixel spacings

Returns

void

get()

get: (type, imageId) => IImageCalibration

Returns the metadata for an imageId if it exists.

Parameters

type: string

the type of metadata to enquire about

imageId: string

the imageId to enquire about

Returns

IImageCalibration

the calibrated pixel spacings for the imageId if it exists, otherwise undefined

Defined in

packages/core/src/utilities/calibratedPixelSpacingMetadataProvider.ts:11