ITK  6.0.0
Insight Toolkit
itkValuedRegionalExtremaImageFilter.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 itkValuedRegionalExtremaImageFilter_h
19#define itkValuedRegionalExtremaImageFilter_h
20
24#include <stack>
25
26namespace itk
27{
76template <typename TInputImage, typename TOutputImage, typename TFunction1, typename TFunction2>
77class ITK_TEMPLATE_EXPORT ValuedRegionalExtremaImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
78{
79public:
80 ITK_DISALLOW_COPY_AND_MOVE(ValuedRegionalExtremaImageFilter);
81
87
89 using InputImageType = TInputImage;
90 using OutputImageType = TOutputImage;
94 using InputImagePixelType = typename InputImageType::PixelType;
99 using OutputImagePixelType = typename OutputImageType::PixelType;
100
102 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
103 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
104
106 itkNewMacro(Self);
107
109 itkOverrideGetNameOfClassMacro(ValuedRegionalExtremaImageFilter);
110
117 itkSetMacro(FullyConnected, bool);
118 itkGetConstReferenceMacro(FullyConnected, bool);
119 itkBooleanMacro(FullyConnected);
125 itkSetMacro(MarkerValue, typename TInputImage::PixelType);
126 itkGetConstReferenceMacro(MarkerValue, typename TInputImage::PixelType);
132 itkGetConstMacro(Flat, bool);
133
134#ifdef ITK_USE_CONCEPT_CHECKING
135 // Begin concept checking
138 // End concept checking
139#endif
140
141protected:
144 void
145 PrintSelf(std::ostream & os, Indent indent) const override;
146
150 void
152
154 void
155 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
156
157 void
158 GenerateData() override;
159
160private:
161 typename TInputImage::PixelType m_MarkerValue{};
162
163 bool m_FullyConnected{ false };
164 bool m_Flat{ false };
165
170 using IndexStack = std::stack<OutIndexType>;
171}; // end of class
172} // end namespace itk
173
174#ifndef ITK_MANUAL_INSTANTIATION
175# include "itkValuedRegionalExtremaImageFilter.hxx"
176#endif
177
178#endif
Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional neighborhood...
Base class for all data objects in ITK.
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
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
typename InputImageType::RegionType InputImageRegionType
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...
A neighborhood iterator which can take on an arbitrary shape.
Uses a flooding algorithm to set all voxels that are not a regional extrema to the max or min of the ...
typename OutputImageType::ConstPointer OutputImageConstPointer
void EnlargeOutputRequestedRegion(DataObject *) override
~ValuedRegionalExtremaImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....