ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryDilateParabolicImageFilter.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 itkBinaryDilateParabolicImageFilter_h
19#define itkBinaryDilateParabolicImageFilter_h
20
23
24namespace itk
25{
65
66template <typename TInputImage, typename TOutputImage = TInputImage>
67class ITK_TEMPLATE_EXPORT BinaryDilateParabolicImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
68{
69public:
70 ITK_DISALLOW_COPY_AND_MOVE(BinaryDilateParabolicImageFilter);
71
77
79 itkNewMacro(Self);
80
82 itkOverrideGetNameOfClassMacro(BinaryDilateParabolicImageFilter);
83
85 using InputImageType = TInputImage;
86 using OutputImageType = TOutputImage;
87 using PixelType = typename TInputImage::PixelType;
90 using OutputPixelType = typename TOutputImage::PixelType;
91
93 using InputImagePointer = typename TInputImage::Pointer;
94 using InputImageConstPointer = typename TInputImage::ConstPointer;
95
97 // perhaps a bit dodgy, change to int if you want to do enormous
98 // binary operations
99 using InternalIntType = short;
100
102 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
103
105
106 void
108
110 itkGetConstReferenceMacro(Radius, RadiusType);
111
112 void
113 Modified() const override;
114
115 void
117 {
118 m_RectPara->SetUseImageSpacing(g);
119 m_CircPara->SetUseImageSpacing(g);
120 }
121
126 itkSetMacro(Circular, bool);
127 itkGetConstReferenceMacro(Circular, bool);
128 itkBooleanMacro(Circular);
130
131 /* add in the traits here */
132protected:
133 void
134 GenerateData() override;
135
138 void
139 PrintSelf(std::ostream & os, Indent indent) const override;
140
147
148private:
151
152 typename CircParabolicType::Pointer m_CircPara;
153 typename CCastType::Pointer m_CircCast;
154
155 typename RectParabolicType::Pointer m_RectPara;
156 typename RCastType::Pointer m_RectCast;
157};
158} // end namespace itk
159
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "itkBinaryDilateParabolicImageFilter.hxx"
162#endif
163
164#endif //__itkBinaryDilateParabolicImageFilter_h
void SetRadius(ScalarRealType radius)
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
typename itk::Image< InternalRealType, InputImageType::ImageDimension > InternalRealImageType
typename itk::ParabolicDilateImageFilter< TInputImage, InternalRealImageType > RectParabolicType
typename itk::ParabolicDilateImageFilter< TInputImage, InternalRealImageType > CircParabolicType
typename NumericTraits< PixelType >::RealType RealType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
~BinaryDilateParabolicImageFilter() override=default
typename TInputImage::ConstPointer InputImageConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
typename itk::Image< InternalIntType, InputImageType::ImageDimension > InternalIntImageType
typename itk::BinaryThresholdImageFilter< InternalRealImageType, OutputImageType > CCastType
typename NumericTraits< PixelType >::FloatType InternalRealType
typename itk::BinaryThresholdImageFilter< InternalRealImageType, OutputImageType > RCastType
Binarize an input image by thresholding.
Simulate a standard C array with copy semantics.
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.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)