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: 2025.1.1.Release.5f9de35910b5f5a39847f4b67bd6e4c2b57f7a23
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