ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkHardConnectedComponentImageFilter.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 itkHardConnectedComponentImageFilter_h
19 #define itkHardConnectedComponentImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkImage.h"
23 
24 namespace itk
25 {
48 template< typename TInputImage, typename TOutputImage >
50  public ImageToImageFilter< TInputImage, TOutputImage >
51 {
52 public:
53 
59 
64  typedef typename TOutputImage::PixelType OutputPixelType;
65  typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
66  typedef typename TInputImage::PixelType InputPixelType;
67  typedef typename TInputImage::InternalPixelType InputInternalPixelType;
68  itkStaticConstMacro(InputImageDimension, unsigned int,
69  TInputImage::ImageDimension);
70  itkStaticConstMacro(ImageDimension, unsigned int,
71  TOutputImage::ImageDimension);
73 
77  typedef TInputImage InputImageType;
78  typedef TOutputImage OutputImageType;
79  typedef typename TInputImage::IndexType IndexType;
80  typedef typename TInputImage::SizeType SizeType;
81  typedef typename TOutputImage::RegionType RegionType;
82  typedef std::list< IndexType > ListType;
83 
89 
94 
98  itkNewMacro(Self);
99 
101  void SetObjectSeed(const IndexType & seed)
102  { m_Seeds.push_front(seed); }
103 
104 #ifdef ITK_USE_CONCEPT_CHECKING
105  // Begin concept checking
106  itkConceptMacro( SameDimensionCheck,
108  itkConceptMacro( IntConvertibleToOutputCheck,
110  itkConceptMacro( UnsignedShortConvertibleToOutputCheck,
112  itkConceptMacro( OutputEqualityComparableCheck,
114  itkConceptMacro( UnsignedCharConvertibleToOutputCheck,
116  itkConceptMacro( OutputIncrementDecrementOperatorsCheck,
118  // End concept checking
119 #endif
120 
121 protected:
124 
128  void GenerateData() ITK_OVERRIDE;
129 
130  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE
131  { Superclass::PrintSelf(os, indent); }
132 
133 private:
134  HardConnectedComponentImageFilter(const Self &) ITK_DELETE_FUNCTION;
135  void operator=(const Self &) ITK_DELETE_FUNCTION;
136 
138 };
139 } // end namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkHardConnectedComponentImageFilter.hxx"
143 #endif
144 
145 #endif
virtual void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Base class for all process objects that output image data.
void PrintSelf(std::ostream &os, Indent indent) const 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)