ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryErodeParabolicImageFilter.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 itkBinaryErodeParabolicImageFilter_h
19#define itkBinaryErodeParabolicImageFilter_h
20
23
24namespace itk
25{
66
67template <typename TInputImage, typename TOutputImage = TInputImage>
68class ITK_TEMPLATE_EXPORT BinaryErodeParabolicImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
69{
70public:
71 ITK_DISALLOW_COPY_AND_MOVE(BinaryErodeParabolicImageFilter);
72
78
80 itkNewMacro(Self);
81
83 itkOverrideGetNameOfClassMacro(BinaryErodeParabolicImageFilter);
84
86 using InputImageType = TInputImage;
87 using OutputImageType = TOutputImage;
88 using PixelType = typename TInputImage::PixelType;
91 using OutputPixelType = typename TOutputImage::PixelType;
92
94 using InputImagePointer = typename TInputImage::Pointer;
95 using InputImageConstPointer = typename TInputImage::ConstPointer;
96
98 // perhaps a bit dodgy, change to int if you want to do enormous
99 // binary operations
100 using InternalIntType = short;
101
103 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
104
106
107 void
109
111 itkGetConstReferenceMacro(Radius, RadiusType);
112
113 void
115 {
116 m_RectPara->SetUseImageSpacing(g);
117 m_CircPara->SetUseImageSpacing(g);
118 }
119
124 itkSetMacro(Circular, bool);
125 itkGetConstReferenceMacro(Circular, bool);
126 itkBooleanMacro(Circular);
128
129 /* add in the traits here */
130 void
131 Modified() const override;
132
133protected:
134 void
135 GenerateData() override;
136
139 void
140 PrintSelf(std::ostream & os, Indent indent) const override;
141
148
149private:
152
153 typename CircParabolicType::Pointer m_CircPara;
154 typename CCastType::Pointer m_CircCast;
155
156 typename RectParabolicType::Pointer m_RectPara;
157 typename RCastType::Pointer m_RectCast;
158};
159} // end namespace itk
160
161#ifndef ITK_MANUAL_INSTANTIATION
162# include "itkBinaryErodeParabolicImageFilter.hxx"
163#endif
164
165#endif //__itkBinaryErodeParabolicImageFilter_h
typename NumericTraits< PixelType >::FloatType InternalRealType
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename TInputImage::ConstPointer InputImageConstPointer
void SetRadius(ScalarRealType radius)
~BinaryErodeParabolicImageFilter() override=default
typename itk::GreaterEqualValImageFilter< InternalIntImageType, OutputImageType > RCastType
typename itk::ParabolicErodeImageFilter< TInputImage, InternalRealImageType > CircParabolicType
typename itk::GreaterEqualValImageFilter< InternalRealImageType, OutputImageType > CCastType
typename itk::ParabolicErodeImageFilter< TInputImage, InternalIntImageType > RectParabolicType
typename NumericTraits< PixelType >::RealType RealType
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
void PrintSelf(std::ostream &os, Indent indent) const override
typename itk::Image< InternalIntType, InputImageType::ImageDimension > InternalIntImageType
typename itk::Image< InternalRealType, InputImageType::ImageDimension > InternalRealImageType
Simulate a standard C array with copy semantics.
Computes the absolute difference between an image and a constant. Can be done with ShiftScale and Abs...
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:53
Class for morphological erosion operations with parabolic structuring elements.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)