ITK  6.0.0
Insight Toolkit
itkRegionGrowImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkRegionGrowImageFilter_h
19#define itkRegionGrowImageFilter_h
20
21#include "itkObject.h"
23
24namespace itk
25{
84template <typename TInputImage, typename TOutputImage>
85class ITK_TEMPLATE_EXPORT RegionGrowImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
86{
87public:
88 ITK_DISALLOW_COPY_AND_MOVE(RegionGrowImageFilter);
89
95
97 itkOverrideGetNameOfClassMacro(RegionGrowImageFilter);
98
100 using InputImageType = TInputImage;
103
105 using InputImagePixelType = typename TInputImage::PixelType;
106
108 using OutputImageType = TOutputImage;
110
112 using OutputImagePixelType = typename TOutputImage::PixelType;
113
116
118 itkSetMacro(GridSize, GridSizeType);
119 itkGetConstReferenceMacro(GridSize, GridSizeType);
123 itkSetMacro(MaximumNumberOfRegions, unsigned int);
124 itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
128 virtual void
130
132 virtual void
134
135protected:
137 ~RegionGrowImageFilter() override = default;
138 void
139 PrintSelf(std::ostream & os, Indent indent) const override;
140
141private:
142 unsigned int m_MaximumNumberOfRegions{};
143
144 GridSizeType m_GridSize{};
145}; // class RegionGrowImageFilter
146} // namespace itk
147
148#ifndef ITK_MANUAL_INSTANTIATION
149# include "itkRegionGrowImageFilter.hxx"
150#endif
151
152#endif
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for RegionGrowImageFilter object.
~RegionGrowImageFilter() override=default
virtual void ApplyRegionGrowImageFilter()=0
virtual void MergeRegions()=0
typename TInputImage::SizeType GridSizeType
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....