MedicalHelperDicomAdjustVolume Method (SoVolumeData, SoMatrixTransform) |
Similar to DicomAdjustVolume( SoVolumeData, bool ) above but returns an SoMatrixTransform
that can be used to properly locate VolumeData in patient space in case of non axis aligned
acquisition:
...
SoMatrixTransform matrixTransform = new SoMatrixTransfrom();
DicomAdjustVolume(volumeData, matrixTransfrom)
root.AddChild(matrixTransform);
root.AddChild(volumeData);
...
The computed matrix embed the image position and image orientation as described here:
https://dicom.innolitics.com/ciods/ct-image/image-plane/00200037
Scaling part is embedded in VolumeData extent.
If SoVolumeData is not a DICOM volume, matrixTransform will be set to identity.
Namespace: OIV.Medical.HelpersAssembly: OIV.Medical (in OIV.Medical.dll) Version: 2023.1.3.0.Release.5fd1c1ad27c99c06f73891d4218ee7122fbde35a
Syntax public static bool DicomAdjustVolume(
SoVolumeData volume,
SoMatrixTransform imgToPatient
)
Public Shared Function DicomAdjustVolume (
volume As SoVolumeData,
imgToPatient As SoMatrixTransform
) As Boolean
public:
static bool DicomAdjustVolume(
SoVolumeData^ volume,
SoMatrixTransform^ imgToPatient
)
static member DicomAdjustVolume :
volume : SoVolumeData *
imgToPatient : SoMatrixTransform -> bool
Parameters
- volume
- Type: OIV.VolumeViz.NodesSoVolumeData
- imgToPatient
- Type: OIV.Inventor.NodesSoMatrixTransform
Return Value
Type:
BooleanTrue if successful.
See Also