ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHConvexImageFilter.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 itkHConvexImageFilter_h
19#define itkHConvexImageFilter_h
20
22
23namespace itk
24{
43template <typename TInputImage, typename TOutputImage>
44class ITK_TEMPLATE_EXPORT HConvexImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(HConvexImageFilter);
48
54
56 using InputImageType = TInputImage;
57 using InputImagePointer = typename InputImageType::Pointer;
58 using InputImageConstPointer = typename InputImageType::ConstPointer;
59 using InputImageRegionType = typename InputImageType::RegionType;
60 using InputImagePixelType = typename InputImageType::PixelType;
61 using OutputImageType = TOutputImage;
62 using OutputImagePointer = typename OutputImageType::Pointer;
63 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
64 using OutputImageRegionType = typename OutputImageType::RegionType;
65 using OutputImagePixelType = typename OutputImageType::PixelType;
66
68 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
69 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
70
72 itkNewMacro(Self);
73
75 itkOverrideGetNameOfClassMacro(HConvexImageFilter);
76
81 itkSetMacro(Height, InputImagePixelType);
82 itkGetConstMacro(Height, InputImagePixelType);
84
91 itkSetMacro(FullyConnected, bool);
92 itkGetConstReferenceMacro(FullyConnected, bool);
93 itkBooleanMacro(FullyConnected);
95
99
100protected:
102 ~HConvexImageFilter() override = default;
103 void
104 PrintSelf(std::ostream & os, Indent indent) const override;
105
109 void
111
113 void
114 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
115
118 void
119 GenerateData() override;
120
121private:
123 unsigned long m_NumberOfIterationsUsed{ 1 };
124 bool m_FullyConnected{ false };
125}; // end of class
126} // end namespace itk
127
128#ifndef ITK_MANUAL_INSTANTIATION
129# include "itkHConvexImageFilter.hxx"
130#endif
131
132#endif
Base class for all data objects in ITK.
void EnlargeOutputRequestedRegion(DataObject *output) override
typename OutputImageType::Pointer OutputImagePointer
~HConvexImageFilter() override=default
SmartPointer< Self > Pointer
static constexpr unsigned int OutputImageDimension
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void GenerateData() override
SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::PixelType OutputImagePixelType
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
static constexpr unsigned int InputImageDimension
typename OutputImageType::ConstPointer OutputImageConstPointer
void GenerateInputRequestedRegion() override
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....