ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkGrayscaleGeodesicErodeImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkGrayscaleGeodesicErodeImageFilter_h
19 #define itkGrayscaleGeodesicErodeImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
64 template< typename TInputImage, typename TOutputImage >
66  public ImageToImageFilter< TInputImage, TOutputImage >
67 {
68 public:
74 
76  typedef TInputImage MarkerImageType;
77  typedef typename MarkerImageType::Pointer MarkerImagePointer;
78  typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer;
79  typedef typename MarkerImageType::RegionType MarkerImageRegionType;
80  typedef typename MarkerImageType::PixelType MarkerImagePixelType;
81  typedef TInputImage MaskImageType;
82  typedef typename MaskImageType::Pointer MaskImagePointer;
83  typedef typename MaskImageType::ConstPointer MaskImageConstPointer;
84  typedef typename MaskImageType::RegionType MaskImageRegionType;
85  typedef typename MaskImageType::PixelType MaskImagePixelType;
86  typedef TOutputImage OutputImageType;
87  typedef typename OutputImageType::Pointer OutputImagePointer;
88  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
89  typedef typename OutputImageType::RegionType OutputImageRegionType;
90  typedef typename OutputImageType::PixelType OutputImagePixelType;
91 
93  itkStaticConstMacro(MarkerImageDimension, unsigned int,
94  TInputImage::ImageDimension);
95  itkStaticConstMacro(MaskImageDimension, unsigned int,
96  TInputImage::ImageDimension);
97  itkStaticConstMacro(OutputImageDimension, unsigned int,
98  TOutputImage::ImageDimension);
100 
102  itkNewMacro(Self);
103 
107 
111  void SetMarkerImage(const MarkerImageType *);
112 
114 
118  void SetMaskImage(const MaskImageType *);
119 
120  const MaskImageType * GetMaskImage();
121 
125  itkSetMacro(RunOneIteration, bool);
126  itkGetConstMacro(RunOneIteration, bool);
127  itkBooleanMacro(RunOneIteration);
129 
132  itkGetConstMacro(NumberOfIterationsUsed, unsigned long);
133 
140  itkSetMacro(FullyConnected, bool);
141  itkGetConstReferenceMacro(FullyConnected, bool);
142  itkBooleanMacro(FullyConnected);
144 
145 #ifdef ITK_USE_CONCEPT_CHECKING
146  // Begin concept checking
147  itkConceptMacro( SameDimensionCheck,
149  itkConceptMacro( InputComparableCheck,
151  itkConceptMacro( InputConvertibleToOutputCheck,
153  // End concept checking
154 #endif
155 
156 protected:
159  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
160 
167  void GenerateInputRequestedRegion() ITK_OVERRIDE;
168 
173  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
174 
181  void GenerateData() ITK_OVERRIDE;
182 
188  outputRegionForThread,
189  ThreadIdType threadId) ITK_OVERRIDE;
190 
191 private:
192  GrayscaleGeodesicErodeImageFilter(const Self &); //purposely not implemented
193  void operator=(const Self &); //purposely not implemented
194 
198 }; // end of class
199 } // end namespace itk
200 
201 #ifndef ITK_MANUAL_INSTANTIATION
202 #include "itkGrayscaleGeodesicErodeImageFilter.hxx"
203 #endif
204 
205 #endif
Base class for all process objects that output image data.
const MaskImageType * GetMaskImage()
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
const MarkerImageType * GetMarkerImage()
void SetMaskImage(const MaskImageType *)
void PrintSelf(std::ostream &os, Indent indent) const override
void SetMarkerImage(const MarkerImageType *)
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
void EnlargeOutputRequestedRegion(DataObject *) override
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.