Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkDICOMProperty_h
14 #define mitkDICOMProperty_h
48 template<
typename TNumericReturnType>
51 std::istringstream iss(dcmValueString);
52 iss.imbue(std::locale(
"C"));
54 if (!(iss >> d) || !(iss.eof()))
56 mitkThrow() <<
"Cannot convert string to value type. Type: " <<
typeid(TNumericReturnType).name() <<
"; String: " << dcmValueString;
66 template<
typename TNumericType>
69 std::ostringstream oss;
70 oss.imbue(std::locale(
"C"));
73 mitkThrow() <<
"Cannot convert value type to dicom string. Type: " <<
typeid(TNumericType).name() <<
"; value: " << value;
TNumericReturnType ConvertDICOMStrToValue(const std::string &dcmValueString)
MITKDICOM_EXPORT std::map< std::string, BaseProperty::Pointer > GetPropertyByDICOMTagPath(const PropertyList *list, const DICOMTagPath &path)
std::string ConvertValueToDICOMStr(const TNumericType value)
Property for time and space resolved string values.
Find image slices visible on a given plane.
MITKDICOM_EXPORT mitk::BaseProperty::Pointer GetDICOMPropertyForDICOMValuesFunctor(const DICOMCachedValueLookupTable &cacheLookupTable)
TemporoSpatialStringProperty DICOMProperty
Key-value list holding instances of BaseProperty.
Base of all data objects.
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...