ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHMaximaImageFilter.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 itkHMaximaImageFilter_h
19#define itkHMaximaImageFilter_h
20
22
23namespace itk
24{
55template <typename TInputImage, typename TOutputImage>
56class ITK_TEMPLATE_EXPORT HMaximaImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(HMaximaImageFilter);
60
66
68 using InputImageType = TInputImage;
69 using InputImagePointer = typename InputImageType::Pointer;
70 using InputImageConstPointer = typename InputImageType::ConstPointer;
71 using InputImageRegionType = typename InputImageType::RegionType;
72 using InputImagePixelType = typename InputImageType::PixelType;
73 using OutputImageType = TOutputImage;
74 using OutputImagePointer = typename OutputImageType::Pointer;
75 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
76 using OutputImageRegionType = typename OutputImageType::RegionType;
77 using OutputImagePixelType = typename OutputImageType::PixelType;
78
80 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
81 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
82
84 itkNewMacro(Self);
85
87 itkOverrideGetNameOfClassMacro(HMaximaImageFilter);
88
93 itkSetMacro(Height, InputImagePixelType);
94 itkGetConstMacro(Height, InputImagePixelType);
96
103 itkSetMacro(FullyConnected, bool);
104 itkGetConstReferenceMacro(FullyConnected, bool);
105 itkBooleanMacro(FullyConnected);
107
111
112protected:
114 ~HMaximaImageFilter() override = default;
115 void
116 PrintSelf(std::ostream & os, Indent indent) const override;
117
121 void
123
125 void
126 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
127
129 void
130 GenerateData() override;
131
132private:
134 unsigned long m_NumberOfIterationsUsed{ 1 };
135 bool m_FullyConnected{ false };
136}; // end of class
137} // end namespace itk
138
139#ifndef ITK_MANUAL_INSTANTIATION
140# include "itkHMaximaImageFilter.hxx"
141#endif
142
143#endif
Base class for all data objects in ITK.
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::Pointer OutputImagePointer
SmartPointer< Self > Pointer
void EnlargeOutputRequestedRegion(DataObject *output) override
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
~HMaximaImageFilter() override=default
void GenerateInputRequestedRegion() override
void GenerateData() override
static constexpr unsigned int OutputImageDimension
SmartPointer< const Self > ConstPointer
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
static constexpr unsigned int InputImageDimension
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....