All files / core/src/types Metadata.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

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                                                                               
import type { VOI } from './voi';
 
/**
 * Metadata for images, More information can be found in the
 * {@link https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.6.3.html#table_C.7-11c}
 */
interface Metadata {
  /** Number of bits allocated for each pixel sample. Each sample shall have the same number of bits allocated */
  BitsAllocated: number;
  /** Number of bits stored for each pixel sample */
  BitsStored: number;
  SamplesPerPixel: number;
  /** Most significant bit for pixel sample data */
  HighBit: number;
  /** Specifies the intended interpretation of the pixel data */
  PhotometricInterpretation: string;
  /** Data representation of the pixel samples. */
  PixelRepresentation: number;
  /** Image Modality */
  Modality: string;
  /** SeriesInstanceUID of the volume */
  SeriesInstanceUID?: string;
  /** The direction cosines of the first row and the first column with respect to the patient */
  ImageOrientationPatient: number[];
  /** Physical distance in the patient between the center of each pixel */
  PixelSpacing: number[];
  /** Uniquely identifies the Frame of Reference for a Series */
  FrameOfReferenceUID: string;
  /** Number of columns in the image. */
  Columns: number;
  /** Number of rows in the image. */
  Rows: number;
  /** Window Level/Center for the image */
  voiLut: VOI[];
  /** VOILUTFunction for the image which is LINEAR or SAMPLED_SIGMOID */
  VOILUTFunction: string;
}
 
export type { Metadata as default };