ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkRegionalMaximaImageFilter.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 itkRegionalMaximaImageFilter_h
19#define itkRegionalMaximaImageFilter_h
20
22
23namespace itk
24{
53template <typename TInputImage, typename TOutputImage>
54class ITK_TEMPLATE_EXPORT RegionalMaximaImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(RegionalMaximaImageFilter);
58
64
66 using InputImageType = TInputImage;
67 using OutputImageType = TOutputImage;
68 using InputImagePointer = typename InputImageType::Pointer;
69 using InputImageConstPointer = typename InputImageType::ConstPointer;
70 using InputImageRegionType = typename InputImageType::RegionType;
71 using InputImagePixelType = typename InputImageType::PixelType;
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(RegionalMaximaImageFilter);
86
93 itkSetMacro(FullyConnected, bool);
94 itkGetConstMacro(FullyConnected, bool);
95 itkBooleanMacro(FullyConnected);
97
102 itkSetMacro(ForegroundValue, OutputImagePixelType);
103 itkGetConstMacro(ForegroundValue, OutputImagePixelType);
105
110 itkSetMacro(BackgroundValue, OutputImagePixelType);
111 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
113
118 itkSetMacro(FlatIsMaxima, bool);
119 itkGetConstMacro(FlatIsMaxima, bool);
120 itkBooleanMacro(FlatIsMaxima);
122
125
126protected:
128 ~RegionalMaximaImageFilter() override = default;
129 void
130 PrintSelf(std::ostream & os, Indent indent) const override;
131
135 void
137
139 void
140 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
141
144 void
145 GenerateData() override;
146
147private:
148 bool m_FullyConnected{ false };
149 bool m_FlatIsMaxima{ true };
152}; // end of class
153} // end namespace itk
154
155#ifndef ITK_MANUAL_INSTANTIATION
156# include "itkRegionalMaximaImageFilter.hxx"
157#endif
158
159#endif
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition itkIndent.h:50
static constexpr unsigned int OutputImageDimension
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::ConstPointer OutputImageConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
~RegionalMaximaImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::RegionType OutputImageRegionType
static constexpr unsigned int InputImageDimension
void GenerateInputRequestedRegion() override
void EnlargeOutputRequestedRegion(DataObject *output) override
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....