Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | import type { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; import type { Point3 } from './Point3'; import type { Scaling } from './ScalingParameters'; import type Mat3 from './Mat3'; import type { PixelDataTypedArray } from './PixelDataTypedArray'; import type RGB from './RGB'; import type IImageCalibration from './IImageCalibration'; import type { VoxelManager } from '../utilities'; import type { IVoxelManager } from './IVoxelManager'; /** * IImageData of an image, which stores actual scalarData and metaData about the image. * IImageData is different from vtkImageData. */ interface IImageData { /** image dimensions */ dimensions: Point3; /** image direction */ direction: Mat3; /** image spacing */ spacing: Point3; /** number of components */ numberOfComponents?: number; /** image origin */ origin: Point3; /** image scalarData which stores the array of pixelData */ scalarData: PixelDataTypedArray; /** vtkImageData object */ imageData: vtkImageData; /** image metadata - currently only modality */ metadata: { Modality: string; FrameOfReferenceUID: string }; /** image scaling for scaling pixelArray */ scaling?: Scaling; /** whether the image has pixel spacing and it is not undefined */ hasPixelSpacing?: boolean; voxelManager?: IVoxelManager<number> | IVoxelManager<RGB>; calibration?: IImageCalibration; /** preScale object */ preScale?: { /** boolean flag to indicate whether the image has been scaled */ scaled?: boolean; /** scaling parameters */ scalingParameters?: { /** modality of the image */ modality?: string; /** rescale slop */ rescaleSlope?: number; /** rescale intercept */ rescaleIntercept?: number; /** PT suvbw */ suvbw?: number; }; }; } export type { IImageData as default }; |