Click or drag to resize
SiDicomDataSetGetElementUIntValue Method

Shortcut to extract a UINT element's value.

Namespace: OIV.VolumeViz.Readers.Dicom
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public ulong GetElementUIntValue(
	SoDicomTag tag,
	ulong idx,
	ulong defaultValue
)

Parameters

tag
Type: OIV.VolumeViz.Readers.DicomSoDicomTag

The tag of the element to find.

idx
Type: SystemUInt64

The index of the scalar value to extract.

defaultValue
Type: SystemUInt64

The value returned if the extraction fails.

Return Value

Type: UInt64

The unsigned 64 bits integer stored at the given index in the element with the given tag, or the default value if the extraction fails.

Remarks

If the value is of a numeric type different from UINT, it will be casted to an unsigned 64 bits integer. That casting may cause a precision loss.

See Also