ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHMinimaImageFilter.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 itkHMinimaImageFilter_h
19#define itkHMinimaImageFilter_h
20
22
23namespace itk
24{
53template <typename TInputImage, typename TOutputImage>
54class ITK_TEMPLATE_EXPORT HMinimaImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(HMinimaImageFilter);
58
64
66 using InputImageType = TInputImage;
67 using InputImagePointer = typename InputImageType::Pointer;
68 using InputImageConstPointer = typename InputImageType::ConstPointer;
69 using InputImageRegionType = typename InputImageType::RegionType;
70 using InputImagePixelType = typename InputImageType::PixelType;
71 using OutputImageType = TOutputImage;
72 using OutputImagePointer = typename OutputImageType::Pointer;
73 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
74 using OutputImageRegionType = typename OutputImageType::RegionType;
75 using OutputImagePixelType = typename OutputImageType::PixelType;
76
78 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
79 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
80
82 itkNewMacro(Self);
83
85 itkOverrideGetNameOfClassMacro(HMinimaImageFilter);
86
91 itkSetMacro(Height, InputImagePixelType);
92 itkGetConstMacro(Height, InputImagePixelType);
94
101 itkSetMacro(FullyConnected, bool);
102 itkGetConstReferenceMacro(FullyConnected, bool);
103 itkBooleanMacro(FullyConnected);
105
109
110protected:
112 ~HMinimaImageFilter() override = default;
113 void
114 PrintSelf(std::ostream & os, Indent indent) const override;
115
119 void
121
123 void
124 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
125
128 void
129 GenerateData() override;
130
131private:
133 unsigned long m_NumberOfIterationsUsed{ 1 };
134 bool m_FullyConnected{ false };
135}; // end of class
136} // end namespace itk
137
138#ifndef ITK_MANUAL_INSTANTIATION
139# include "itkHMinimaImageFilter.hxx"
140#endif
141
142#endif
Base class for all data objects in ITK.
typename OutputImageType::PixelType OutputImagePixelType
static constexpr unsigned int InputImageDimension
SmartPointer< const Self > ConstPointer
void EnlargeOutputRequestedRegion(DataObject *output) override
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::RegionType InputImageRegionType
void GenerateInputRequestedRegion() override
typename InputImageType::PixelType InputImagePixelType
SmartPointer< Self > Pointer
typename OutputImageType::ConstPointer OutputImageConstPointer
void GenerateData() override
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::Pointer InputImagePointer
static constexpr unsigned int OutputImageDimension
ImageToImageFilter< TInputImage, TOutputImage > Superclass
~HMinimaImageFilter() override=default
typename OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....