DicomMetadata class
Represents the extracted medical metadata from a DICOM file header.
This struct contains critical parameters for clinical rendering, including spatial dimensions, windowing defaults, and patient identity.
Constructors
- DicomMetadata({required int width, required int height, required double windowCenter, required double windowWidth, required double rescaleIntercept, required double rescaleSlope, required String patientName, required String photometricInterpretation, required int samplesPerPixel, required int bitsAllocated, required int bitsStored, required int highBit, required int pixelRepresentation})
-
const
Properties
- bitsAllocated → int
-
The number of bits allocated per pixel (typically 16).
final
- bitsStored → int
-
The number of bits actually used to store the pixel data (typically 12 or 16).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → int
-
The number of pixel rows in the image.
final
- highBit → int
-
The most significant bit of the pixel data (typically bits_stored - 1).
final
- patientName → String
-
The name of the patient as recorded in the file header.
final
- photometricInterpretation → String
-
The Photometric Interpretation (e.g., "MONOCHROME1", "MONOCHROME2").
Informs the renderer how to map pixel values to grayscale intensities.
final
- pixelRepresentation → int
-
Specifies whether the pixel data is signed (1) or unsigned (0).
final
- rescaleIntercept → double
-
The Rescale Intercept (Tag 0028,1052).
Used for converting stored pixel values to Hounsfield Units (HU).
final
- rescaleSlope → double
-
The Rescale Slope (Tag 0028,1053).
Used for converting stored pixel values to Hounsfield Units (HU).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samplesPerPixel → int
-
The number of color components in this image (e.g., 1 for Grayscale).
final
- width → int
-
The number of pixel columns in the image.
final
- windowCenter → double
-
The default Window Center (Level) provided in the DICOM metadata.
Maps to the average Hounsfield Unit of interest.
final
- windowWidth → double
-
The default Window Width provided in the DICOM metadata.
Determines the dynamic range around the center to be displayed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override