Function: calibrateImageSpacing()
calibrateImageSpacing(
imageId
,renderingEngine
,calibrationOrScale
):void
It adds the provided spacing to the Cornerstone internal calibratedPixelSpacing metadata provider, then it invalidates all the tools that have the imageId as their reference imageIds. Finally, it triggers a re-render for invalidated annotations.
Parameters
• imageId: string
ImageId for the calibrated image
• renderingEngine: RenderingEngine
• calibrationOrScale: number
| IImageCalibration
either the calibration object or a scale value
Returns
void