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

Function EqualAtSecondResolution

Modules/PET/src/mitkSUVCalculationHelper.cpp:231–234  ·  view source on GitHub ↗

Compare two OFDateTimes at second resolution: true if they represent the same wall-clock second (sub-second jitter is ignored). Used by DC=START Step 2 (AcquisitionTime equals SeriesTime in seconds).

Source from the content-addressed store, hash-verified

229 // the same wall-clock second (sub-second jitter is ignored). Used by
230 // DC=START Step 2 (AcquisitionTime equals SeriesTime in seconds).
231 bool EqualAtSecondResolution(const OFDateTime& a, const OFDateTime& b)
232 {
233 return std::fabs(DurationInSeconds(a, b)) < 1.0;
234 }
235
236 // Closed-form average count-rate time per IBSI-SUV recommendation
237 // (suv_text.txt:820-826):

Callers 1

DeduceDecayCorrectionMethod · 0.85

Calls 1

DurationInSecondsFunction · 0.85

Tested by

no test coverage detected