ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkParabolicOpenCloseImageFilter.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 itkParabolicOpenCloseImageFilter_h
19#define itkParabolicOpenCloseImageFilter_h
20
22#include "itkNumericTraits.h"
23#include "itkProgressReporter.h"
24
25namespace itk
26{
52template <typename TInputImage, bool DoOpen, typename TOutputImage = TInputImage>
53class ITK_TEMPLATE_EXPORT ParabolicOpenCloseImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(ParabolicOpenCloseImageFilter);
57
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(ParabolicOpenCloseImageFilter);
69
71 using InputImageType = TInputImage;
72 using OutputImageType = TOutputImage;
73 using PixelType = typename TInputImage::PixelType;
76 using OutputPixelType = typename TOutputImage::PixelType;
77 using OutputImageRegionType = typename OutputImageType::RegionType;
78 using InputSizeType = typename TInputImage::SizeType;
79 using OutputSizeType = typename TOutputImage::SizeType;
80
82 using InputImagePointer = typename TInputImage::Pointer;
83 using InputImageConstPointer = typename TInputImage::ConstPointer;
84
85 using OutputIndexType = typename OutputImageType::IndexType;
86
88 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
89 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
90 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
91
94
98
100 // using RealImageType = typename Image<InternalRealType,
101 // Self::ImageDimension >;
102
103 // set all of the scales the same
104 void
106
108 itkGetConstReferenceMacro(Scale, RadiusType);
113 itkSetMacro(UseImageSpacing, bool);
114 itkGetConstReferenceMacro(UseImageSpacing, bool);
115 itkBooleanMacro(UseImageSpacing);
116
118 {
119 NOCHOICE = 0, // decices based on scale - experimental
120 CONTACTPOINT = 1, // sometimes faster at low scale
121 INTERSECTION = 2 // default
122 };
123
128
130 itkGetConstReferenceMacro(ParabolicAlgorithm, int);
131
133
135
136protected:
138 ~ParabolicOpenCloseImageFilter() override = default;
139 void
140 PrintSelf(std::ostream & os, Indent indent) const override;
141
143 void
144 GenerateData() override;
145
146 unsigned int
147 SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType & splitRegion) override;
148
149 void
150 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) override;
151
152 void
154
155 // Override since the filter produces the entire dataset.
156 void
158
160
161private:
163
164 unsigned int m_CurrentDimension;
167};
168} // end namespace itk
169
170#ifndef ITK_MANUAL_INSTANTIATION
171# include "itkParabolicOpenCloseImageFilter.hxx"
172#endif
173
174#endif
Base class for all data objects in ITK.
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:53
void GenerateInputRequestedRegion() override
typename TInputImage::ConstPointer InputImageConstPointer
typename NumericTraits< PixelType >::FloatType InternalRealType
typename OutputImageType::IndexType OutputIndexType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
typename NumericTraits< PixelType >::RealType RealType
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
void PrintSelf(std::ostream &os, Indent indent) const override
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
unsigned int SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void SetScale(ScalarRealType scale)
typename OutputImageType::RegionType OutputImageRegionType
typename TOutputImage::PixelType OutputPixelType
void EnlargeOutputRequestedRegion(DataObject *output) override
~ParabolicOpenCloseImageFilter() override=default
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)