Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIgnorePixelMaskGenerator.h
Go to the documentation of this file.
1 #ifndef MITKIGNOREPIXELMASKGEN_
2 #define MITKIGNOREPIXELMASKGEN_
3 
4 #include <mitkImage.h>
6 #include <mitkMaskGenerator.h>
7 #include <limits>
8 #include <itkImage.h>
9 
10 
11 namespace mitk
12 {
17 {
18 public:
24  typedef double RealType;
25 
27  itkNewMacro(Self)
28 
29 
31 
35  void SetIgnoredPixelValue(RealType pixelValue);
36 
40  mitk::Image::Pointer GetMask();
41 
46  void SetTimeStep(unsigned int timeStep);
47 
48 protected:
49  IgnorePixelMaskGenerator():
50  m_IgnoredPixelValue(std::numeric_limits<RealType>::min())
51  {
52  m_TimeStep = 0;
53  m_InternalMaskUpdateTime = 0;
54  m_InternalMask = mitk::Image::New();
55  }
56 
58 
59  template <typename TPixel, unsigned int VImageDimension>
60  void InternalCalculateMask(typename itk::Image<TPixel, VImageDimension>* image);
61 
62 private:
63  bool IsUpdateRequired() const;
64 
65  RealType m_IgnoredPixelValue;
66  unsigned long m_InternalMaskUpdateTime;
67 
68 
69 };
70 
71 }
72 
73 #endif
The IgnorePixelMaskGenerator class is used to generate a mask that is zero for specific pixel values ...
itk::SmartPointer< const Self > ConstPointer
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGESTATISTICS_EXPORT
Image class for storing images.
Definition: mitkImage.h:76
static Pointer New()
static T min(T x, T y)
Definition: svm.cpp:67