MCPcopy Create free account
hub / github.com/MITK/MITK / ParseDICOMDateTime

Function ParseDICOMDateTime

Modules/PET/src/mitkSUVCalculationHelper.cpp:211–214  ·  view source on GitHub ↗

Parse a DICOM DT-format string ("YYYYMMDDHHMMSS[.FFFFFF][&ZZXX]") into an OFDateTime. Returns true on success.

Source from the content-addressed store, hash-verified

209 // Parse a DICOM DT-format string ("YYYYMMDDHHMMSS[.FFFFFF][&ZZXX]") into
210 // an OFDateTime. Returns true on success.
211 bool ParseDICOMDateTime(const std::string& dt, OFDateTime& out)
212 {
213 return DcmDateTime::getOFDateTimeFromString(OFString(dt.c_str()), out).good();
214 }
215
216 // Read a numeric DICOM tag at (timestep, slice). Returns NaN if the tag
217 // is absent at that slot or cannot be parsed.

Callers 1

DeduceDecayCorrectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected