Click or drag to resize
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.Helpers
Assembly: OIV.Medical (in OIV.Medical.dll) Version: 2024.2.2.Release.77a61d1a523234b418592ccd07676e84f6c1d90b
Syntax
public static bool DicomGetWindowCenterWidth(
	SoVolumeData volume,
	out SbVec2f winCW
)

Parameters

volume
Type: OIV.VolumeViz.NodesSoVolumeData
winCW
Type: OIV.InventorSbVec2f

Return Value

Type: Boolean
See Also