Click or drag to resize
MedicalHelperDicomAdjustVolume Method (SoVolumeData, Boolean)
Optimize volume data node for DICOM volumes. The volume properties are modified (but not the data values). Do not call this method before setting the volume data node's fileName field or calling setReader. - First, adjusts the LDM tile size to optimize data loading. Note this adjustment is valid for any data format that is not already tiled, i.e. most formats except .lda and .ldm. - Second, adjusts the volume extent in 3D to be the actual physical extent of the data set measured from outside edge to outside edge of the voxels. This is a DICOM specific adjustment. - Third, if 'useImagePosition' is true, adjusts the volume extent so the center of the first voxel is positioned at the coordinates specified in the data set's "Image position" (0020,0032) attribute. By default the DICOM volume reader sets the volume extent so the center of the volume is positioned at 0,0,0 in 3D space. This is a DICOM specific adjustment.

Namespace: OIV.Medical.Helpers
Assembly: OIV.Medical (in OIV.Medical.dll) Version: 2024.2.3.Release.8195eb522b090a23f1a65c7685cebb3bb12ab134
Syntax
public static bool DicomAdjustVolume(
	SoVolumeData volume,
	bool useImagePosition = true
)

Parameters

volume
Type: OIV.VolumeViz.NodesSoVolumeData
useImagePosition (Optional)
Type: SystemBoolean

Return Value

Type: Boolean
True if successful.
See Also