For ADMIN and START, every (timestep, slice) entry holds the same value. The iteration source is purely the SlicedData time geometry; no DICOM acquisition tag is required for the iteration.
| 522 | // The iteration source is purely the SlicedData time geometry; no DICOM |
| 523 | // acquisition tag is required for the iteration. |
| 524 | void FillUniformDecayMap(const mitk::SlicedData* data, |
| 525 | double value, |
| 526 | mitk::DecayTimeMapType& outMap) |
| 527 | { |
| 528 | const auto timeSteps = data->GetTimeSteps(); |
| 529 | for (mitk::TimeStepType t = 0; t < timeSteps; ++t) |
| 530 | { |
| 531 | const auto* sliced = data->GetSlicedGeometry(t); |
| 532 | const unsigned int slices = (nullptr != sliced) ? sliced->GetSlices() : 1u; |
| 533 | auto& sliceMap = outMap[t]; |
| 534 | for (unsigned int s = 0; s < slices; ++s) |
| 535 | { |
| 536 | sliceMap[static_cast<mitk::SlicedData::IndexValueType>(s)] = value; |
| 537 | } |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | // Read a date string we can use for assembling a SeriesTime / fallback |
| 542 | // injection-time date. Prefers SeriesDate (0008,0021), falls back to the |
no test coverage detected