Click or drag to resize
MedicalHelper.DicomGetImagePosition Method
Get the "Image Position (Patient)" attribute (0020,0032) from a DICOM volume. DICOM calls this the upper left hand corner of the image, but more precisely it's the center of the first voxel, in millimeters (mm). For VolumeViz the upper left hand corner of the image is literally the corner of the voxel, one-half voxel different from Image Position. Note the SoVRDicomData getPosition() method does not return the value of the Image Position attribute. It returns a value computed from Image Position.

Namespace: OIV.Medical.Helpers
Assembly: OIV.Medical (in OIV.Medical.dll) Version: 10.3.0.0.Release.0bba99a3ad7bbd8ed1b11ff7884e57eb6cd0c3df
Syntax
public static bool DicomGetImagePosition(
	SoVolumeData volume,
	out SbVec3f imagePos
)

Parameters

volume
Type: OIV.VolumeViz.Nodes.SoVolumeData
imagePos
Type: OIV.Inventor.SbVec3f

Return Value

Type: Boolean
True if the query is successful. If not successful, imagePos is 0,0,0. If there are multiple slices, value is taken from the first slice.
See Also