ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkGrayscaleConnectedClosingImageFilter.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 __itkGrayscaleConnectedClosingImageFilter_h
19 #define __itkGrayscaleConnectedClosingImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
44 template< class TInputImage, class TOutputImage >
46  public ImageToImageFilter< TInputImage, TOutputImage >
47 {
48 public:
54 
56  typedef TInputImage InputImageType;
57  typedef typename InputImageType::Pointer InputImagePointer;
58  typedef typename InputImageType::ConstPointer InputImageConstPointer;
59  typedef typename InputImageType::RegionType InputImageRegionType;
60  typedef typename InputImageType::PixelType InputImagePixelType;
61  typedef typename InputImageRegionType::IndexType InputImageIndexType;
62  typedef TOutputImage OutputImageType;
63  typedef typename OutputImageType::Pointer OutputImagePointer;
64  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
65  typedef typename OutputImageType::RegionType OutputImageRegionType;
66  typedef typename OutputImageType::PixelType OutputImagePixelType;
67 
69  itkStaticConstMacro(InputImageDimension, unsigned int,
70  TInputImage::ImageDimension);
71  itkStaticConstMacro(OutputImageDimension, unsigned int,
72  TOutputImage::ImageDimension);
74 
76  itkNewMacro(Self);
77 
81 
83  itkSetMacro(Seed, InputImageIndexType);
84  itkGetConstMacro(Seed, InputImageIndexType);
86 
93  itkSetMacro(FullyConnected, bool);
94  itkGetConstReferenceMacro(FullyConnected, bool);
95  itkBooleanMacro(FullyConnected);
97 
98 #ifdef ITK_USE_CONCEPT_CHECKING
99 
100  itkConceptMacro( InputEqualityComparableCheck,
102  itkConceptMacro( InputConvertibleToOutputCheck,
104  itkConceptMacro( InputOStreamWritableCheck,
106 
108 #endif
109 
110 protected:
113  void PrintSelf(std::ostream & os, Indent indent) const;
114 
118  void GenerateInputRequestedRegion();
119 
121  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
122 
125  void GenerateData();
126 
127 private:
128  GrayscaleConnectedClosingImageFilter(const Self &); //purposely not
129  // implemented
130  void operator=(const Self &); //purposely not
131 
132  // implemented
133 
136 
138 }; // end of class
139 } // end namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkGrayscaleConnectedClosingImageFilter.hxx"
143 #endif
144 
145 #endif
146