| 105 | } |
| 106 | |
| 107 | void mitk::MaskImageFilter::GenerateData() |
| 108 | { |
| 109 | auto input = this->GetInput(); |
| 110 | auto mask = this->GetMask(); |
| 111 | mitk::Image::Pointer output = this->GetOutput(); |
| 112 | |
| 113 | if ((output->IsInitialized() == false) || (nullptr == mask) || (mask->GetTimeGeometry()->CountTimeSteps() == 0)) |
| 114 | return; |
| 115 | |
| 116 | const mitk::TimeGeometry *inputTimeGeometry = input->GetTimeGeometry(); |
| 117 | |
| 118 | for (TimeStepType t = 0; t < inputTimeGeometry->CountTimeSteps(); ++t) |
| 119 | { |
| 120 | auto timeInMS = inputTimeGeometry->TimeStepToTimePoint(t); |
| 121 | |
| 122 | m_CurrentOutputTS = t; |
| 123 | auto inputFrame = SelectImageByTimePoint(input, timeInMS); |
| 124 | auto maskFrame = SelectImageByTimePoint(mask, timeInMS); |
| 125 | AccessTwoImagesFixedDimensionByItk(inputFrame, maskFrame, InternalComputeMask, 3); |
| 126 | } |
| 127 | |
| 128 | m_TimeOfHeaderInitialization.Modified(); |
| 129 | } |
nothing calls this directly
no test coverage detected