11 if (m_internalMaskImage != maskImage)
13 m_internalMaskImage = maskImage;
27 void ImageMaskGenerator::UpdateInternalMask()
29 unsigned int timeStepForExtraction;
31 if (
m_TimeStep >= m_internalMaskImage->GetTimeSteps())
33 MITK_WARN <<
"Warning: time step > number of time steps in mask image, using last time step";
34 timeStepForExtraction = m_internalMaskImage->GetTimeSteps() - 1;
41 imageTimeSelector->SetInput(m_internalMaskImage);
42 imageTimeSelector->SetTimeNr(timeStepForExtraction);
43 imageTimeSelector->UpdateLargestPossibleRegion();
52 if (m_internalMaskImage.IsNull())
56 if (IsUpdateRequired())
64 bool ImageMaskGenerator::IsUpdateRequired()
const
67 unsigned long maskImageTimeStamp = m_internalMaskImage->GetMTime();
69 if (maskImageTimeStamp > internalMaskTimeStamp)
74 if (this->GetMTime() > maskImageTimeStamp)
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
void SetImageMask(mitk::Image::Pointer maskImage)
mitk::Image::Pointer m_InternalMask
mitk::Image::Pointer GetMask()
GetMask must be overridden by derived classes.
void SetTimeStep(unsigned int timeStep)