ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryOpenParabolicImageFilter.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 itkBinaryOpenParabolicImageFilter_h
19#define itkBinaryOpenParabolicImageFilter_h
20
25
26namespace itk
27{
67
68template <typename TInputImage, typename TOutputImage = TInputImage>
69class ITK_TEMPLATE_EXPORT BinaryOpenParabolicImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
70{
71public:
72 ITK_DISALLOW_COPY_AND_MOVE(BinaryOpenParabolicImageFilter);
73
79
81 itkNewMacro(Self);
82
84 itkOverrideGetNameOfClassMacro(BinaryOpenParabolicImageFilter);
85
87 using InputImageType = TInputImage;
88 using OutputImageType = TOutputImage;
89 using PixelType = typename TInputImage::PixelType;
92 using OutputPixelType = typename TOutputImage::PixelType;
93
95 using InputImagePointer = typename TInputImage::Pointer;
96 using InputImageConstPointer = typename TInputImage::ConstPointer;
97
99 // perhaps a bit dodgy, change to int if you want to do enormous
100 // binary operations
101 using InternalIntType = short;
102
104 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
105
107
108 void
110
112 itkGetConstReferenceMacro(Radius, RadiusType);
113
114 void
116 {
117 m_RectErode->SetUseImageSpacing(g);
118 m_RectDilate->SetUseImageSpacing(g);
119 m_CircErode->SetUseImageSpacing(g);
120 m_CircDilate->SetUseImageSpacing(g);
121 }
122
127 itkSetMacro(Circular, bool);
128 itkGetConstReferenceMacro(Circular, bool);
129 itkBooleanMacro(Circular);
130
133 itkSetMacro(SafeBorder, bool);
134 itkGetConstReferenceMacro(SafeBorder, bool);
135 itkBooleanMacro(SafeBorder);
136
138
139 /* add in the traits here */
140protected:
141 void
142 GenerateData() override;
143
146 void
147 PrintSelf(std::ostream & os, Indent indent) const override;
148
155
158
161
162private:
166
167 typename CircErodeType::Pointer m_CircErode;
168 typename CircDilateType::Pointer m_CircDilate;
169
170 typename CCastTypeA::Pointer m_CircCastA;
171 typename CCastTypeB::Pointer m_CircCastB;
172
173 typename RectErodeType::Pointer m_RectErode;
174 typename RectDilateType::Pointer m_RectDilate;
175
176 typename RCastTypeA::Pointer m_RectCastA;
177 typename RCastTypeB::Pointer m_RectCastB;
178};
179} // end namespace itk
180
181#ifndef ITK_MANUAL_INSTANTIATION
182# include "itkBinaryOpenParabolicImageFilter.hxx"
183#endif
184
185#endif //__itkBinaryOpenParabolicImageFilter_h
typename itk::Image< InternalRealType, InputImageType::ImageDimension > InternalRealImageType
typename itk::ParabolicErodeImageFilter< TInputImage, InternalIntImageType > RectErodeType
typename itk::ParabolicErodeImageFilter< TInputImage, InternalRealImageType > CircErodeType
typename itk::GreaterEqualValImageFilter< InternalRealImageType, OutputImageType > CCastTypeA
void SetRadius(ScalarRealType radius)
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
~BinaryOpenParabolicImageFilter() override=default
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
typename itk::GreaterEqualValImageFilter< InternalIntImageType, OutputImageType > RCastTypeA
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename itk::ParabolicDilateImageFilter< OutputImageType, InternalRealImageType > CircDilateType
typename itk::Image< InternalIntType, InputImageType::ImageDimension > InternalIntImageType
typename itk::BinaryThresholdImageFilter< InternalRealImageType, OutputImageType > CCastTypeB
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::ConstPointer InputImageConstPointer
typename itk::BinaryThresholdImageFilter< InternalRealImageType, OutputImageType > RCastTypeB
typename itk::ParabolicDilateImageFilter< OutputImageType, InternalRealImageType > RectDilateType
typename NumericTraits< PixelType >::FloatType InternalRealType
typename NumericTraits< PixelType >::RealType RealType
Binarize an input image by thresholding.
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 dilation operations with parabolic structuring elements.
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)