@cornerstonejs/core
Version:
Cornerstone3D Core
35 lines (34 loc) • 1.37 kB
TypeScript
import { VOILUTFunctionType } from '../enums/index.js';
import type IImage from '../types/IImage.js';
import type { ImagePlaneModule } from '../types/index.js';
import type IImageCalibration from '../types/IImageCalibration.js';
export interface BuildMetadataResult {
scalingFactor: number;
imagePlaneModule: ImagePlaneModule;
voiLUTFunction: VOILUTFunctionType;
modality: string;
calibration: IImageCalibration;
imagePixelModule: {
bitsAllocated: number;
bitsStored: number;
samplesPerPixel: number;
highBit: number;
photometricInterpretation: string;
pixelRepresentation: number;
windowWidth: number;
windowCenter: number;
modality: string;
voiLUTFunction: VOILUTFunctionType;
};
}
export declare function getValidVOILUTFunction(voiLUTFunction: VOILUTFunctionType | unknown): VOILUTFunctionType;
export declare function getImagePlaneModule(imageId: string): ImagePlaneModule;
export declare function calibrateImagePlaneModule(imageId: string, imagePlaneModule: ImagePlaneModule, currentCalibration: IImageCalibration): {
imagePlaneModule: ImagePlaneModule;
hasPixelSpacing: boolean;
calibrationEvent?: {
scale: number;
calibration: IImageCalibration;
};
};
export declare function buildMetadata(image: IImage): BuildMetadataResult;