MedicalHelperDicomGetImagePosition 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.HelpersAssembly: OIV.Medical (in OIV.Medical.dll) Version: 9.9.13.0.Release.908d87e0180ebfe7287e3e24da18328657f2aef7
Syntaxpublic static bool DicomGetImagePosition(
SoVolumeData volume,
out SbVec3f imagePos
)
Public Shared Function DicomGetImagePosition (
volume As SoVolumeData,
<OutAttribute> ByRef imagePos As SbVec3f
) As Boolean
public:
static bool DicomGetImagePosition(
SoVolumeData^ volume,
[OutAttribute] SbVec3f% imagePos
)
static member DicomGetImagePosition :
volume : SoVolumeData *
imagePos : SbVec3f byref -> bool
Parameters
- volume
- Type: OIV.VolumeViz.NodesSoVolumeData
- imagePos
- Type: OIV.InventorSbVec3f
Return Value
Type:
BooleanTrue 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