Click or drag to resize
SiDicomDataSetGetElementIntValue Method

Shortcut to extract a INT element's value.

Namespace: OIV.VolumeViz.Readers.Dicom
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public long GetElementIntValue(
	SoDicomTag tag,
	ulong idx,
	long 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: SystemInt64

The value returned if the extraction fails.

Return Value

Type: Int64

The 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 INT, it will be casted to a 64 bits integer. That casting may cause a precision loss.

See Also