Click or drag to resize
SiDicomDataSetGetElementDoubleValue Method

Shortcut to extract a DOUBLE 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 double GetElementDoubleValue(
	SoDicomTag tag,
	ulong idx,
	double 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: SystemDouble

The value returned if the extraction fails.

Return Value

Type: Double

The double 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 DOUBLE, it will be casted to a double. That casting may cause a precision loss.

See Also