MedicalHelperDicomGetWindowCenterWidth Method (SoVolumeData, SbVec2f) |
Get the window center (level) and width values from a DICOM volume.
If the query fails, returns false and sets 'winCW' to 0,0.
Uses the Window Center (0028,1050) and Window Width (0028,1051) tags from the
first image in the stack. If these tags do not exist in the volume, then window
center and width are computed from the actual data min and max values. (Note
that querying the actual min and max values may take some time because every
voxel must be loaded.)
This method may be called with a non-DICOM volume. In that case the actual
min and max data values are used.
Namespace: OIV.Medical.HelpersAssembly: OIV.Medical (in OIV.Medical.dll) Version: 2023.1.3.0.Release.5fd1c1ad27c99c06f73891d4218ee7122fbde35a
Syntax public static bool DicomGetWindowCenterWidth(
SoVolumeData volume,
out SbVec2f winCW
)
Public Shared Function DicomGetWindowCenterWidth (
volume As SoVolumeData,
<OutAttribute> ByRef winCW As SbVec2f
) As Boolean
public:
static bool DicomGetWindowCenterWidth(
SoVolumeData^ volume,
[OutAttribute] SbVec2f% winCW
)
static member DicomGetWindowCenterWidth :
volume : SoVolumeData *
winCW : SbVec2f byref -> bool
Parameters
- volume
- Type: OIV.VolumeViz.NodesSoVolumeData
- winCW
- Type: OIV.InventorSbVec2f
Return Value
Type:
BooleanSee Also