Package com.pixelmed.dicom
Class PixelSpacing
java.lang.Object
com.pixelmed.dicom.PixelSpacing
An class to extract and describe pixel spacing related information.
Currently only supports square pixels.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPixelSpacing
(AttributeList list) Extract the appropriate spacing to use for measurements on projection radiographs or non-enhanced family cross-sectional images.PixelSpacing
(AttributeList list, GeometryOfVolume volumeGeometry) Extract the appropriate spacing to use for measurements.PixelSpacing
(AttributeList list, GeometryOfVolume volumeGeometry, boolean preferCalibratedValue, boolean useMagnificationFactorIfPresent) Extract the appropriate spacing to use for measurements. -
Method Summary
Modifier and TypeMethodDescriptionGet the description.double
Get the spacing.toString()
Get the spacing and the description as a String.
-
Field Details
-
spacing
protected double spacing -
description
-
-
Constructor Details
-
PixelSpacing
public PixelSpacing(AttributeList list, GeometryOfVolume volumeGeometry, boolean preferCalibratedValue, boolean useMagnificationFactorIfPresent) Extract the appropriate spacing to use for measurements.
- Parameters:
list
- where to look for the top level DICOM pixel spacing related attributesvolumeGeometry
- if present, where to get the voxel spacing already derived from the DICOM attributes may be null, if not cross-sectional modality)preferCalibratedValue
- if true, in the absence of 3D geometry, and presence of both Pixel Spacing and Imager Pixel Spacing with different values, use the formeruseMagnificationFactorIfPresent
- if true, and preferCalibratedValue is false and there is no Pixel Spacing, adjust Imager Pixel Spacing based on mag factor, if absent, SID and SOD
-
PixelSpacing
Extract the appropriate spacing to use for measurements.
Will prefer calibrated values, and ignore magnification factors- Parameters:
list
- where to look for the top level DICOM pixel spacing related attributesvolumeGeometry
- if present, where to get the voxel spacing already derived from the DICOM attributes may be null, if not cross-sectional modality)
-
PixelSpacing
Extract the appropriate spacing to use for measurements on projection radiographs or non-enhanced family cross-sectional images.
Will prefer calibrated values, and ignore magnification factors- Parameters:
list
- where to look for the top level DICOM pixel spacing related attributes
-
-
Method Details