SiDicomDataSetGetElementDoubleValue Method |
Shortcut to extract a DOUBLE element's value.
Namespace: OIV.VolumeViz.Readers.DicomAssembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax public double GetElementDoubleValue(
SoDicomTag tag,
ulong idx,
double defaultValue
)
Public Function GetElementDoubleValue (
tag As SoDicomTag,
idx As ULong,
defaultValue As Double
) As Double
public:
double GetElementDoubleValue(
SoDicomTag^ tag,
unsigned long long idx,
double defaultValue
)
member GetElementDoubleValue :
tag : SoDicomTag *
idx : uint64 *
defaultValue : float -> float
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:
DoubleThe 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