ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkGrayscaleConnectedOpeningImageFilter.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 __itkGrayscaleConnectedOpeningImageFilter_h
19 #define __itkGrayscaleConnectedOpeningImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
45 template< class TInputImage, class TOutputImage >
47  public ImageToImageFilter< TInputImage, TOutputImage >
48 {
49 public:
55 
57  typedef TInputImage InputImageType;
58  typedef typename InputImageType::Pointer InputImagePointer;
59  typedef typename InputImageType::ConstPointer InputImageConstPointer;
60  typedef typename InputImageType::RegionType InputImageRegionType;
61  typedef typename InputImageType::PixelType InputImagePixelType;
62  typedef typename InputImageRegionType::IndexType InputImageIndexType;
63  typedef TOutputImage OutputImageType;
64  typedef typename OutputImageType::Pointer OutputImagePointer;
65  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
66  typedef typename OutputImageType::RegionType OutputImageRegionType;
67  typedef typename OutputImageType::PixelType OutputImagePixelType;
68 
70  itkStaticConstMacro(InputImageDimension, unsigned int,
71  TInputImage::ImageDimension);
72  itkStaticConstMacro(OutputImageDimension, unsigned int,
73  TOutputImage::ImageDimension);
75 
77  itkNewMacro(Self);
78 
82 
84  itkSetMacro(Seed, InputImageIndexType);
85  itkGetConstMacro(Seed, InputImageIndexType);
87 
94  itkSetMacro(FullyConnected, bool);
95  itkGetConstReferenceMacro(FullyConnected, bool);
96  itkBooleanMacro(FullyConnected);
98 
99 #ifdef ITK_USE_CONCEPT_CHECKING
100 
101  itkConceptMacro( InputEqualityComparableCheck,
103  itkConceptMacro( InputConvertibleToOutputCheck,
105  itkConceptMacro( InputOStreamWritableCheck,
107 
109 #endif
110 
111 protected:
114  void PrintSelf(std::ostream & os, Indent indent) const;
115 
119  void GenerateInputRequestedRegion();
120 
122  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
123 
126  void GenerateData();
127 
128 private:
129  GrayscaleConnectedOpeningImageFilter(const Self &); //purposely not
130  // implemented
131  void operator=(const Self &); //purposely not
132 
133  // implemented
134 
137 
139 }; // end of class
140 } // end namespace itk
141 
142 #ifndef ITK_MANUAL_INSTANTIATION
143 #include "itkGrayscaleConnectedOpeningImageFilter.hxx"
144 #endif
145 
146 #endif
147