ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMaskFeaturePointSelectionFilter.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 itkMaskFeaturePointSelectionFilter_h
19#define itkMaskFeaturePointSelectionFilter_h
20
23#include "itkImage.h"
24#include "itkPointSet.h"
27#include "itkMatrix.h"
28#include "itkConceptChecking.h"
29#include <vector>
30
31
32namespace itk
33{
56
57template <typename TImage,
58 typename TMask = TImage,
60 TImage::ImageDimension>>
61class ITK_TEMPLATE_EXPORT MaskFeaturePointSelectionFilter : public ImageToMeshFilter<TImage, TFeatures>
62{
63public:
64 ITK_DISALLOW_COPY_AND_MOVE(MaskFeaturePointSelectionFilter);
65
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(MaskFeaturePointSelectionFilter);
77
78 static constexpr unsigned int ImageDimension = 3u;
79
85
87 using ImageType = TImage;
88 using ImageConstPointer = typename ImageType::ConstPointer;
89 using ImagePixelType = typename ImageType::PixelType;
90
92 using MaskType = TMask;
93 using MaskConstPointer = typename MaskType::ConstPointer;
94 using MaskPixelType = typename MaskType::PixelType;
95
97 using FeaturePointsType = TFeatures;
98 using FeaturePointsPointer = typename FeaturePointsType::Pointer;
99 using StructureTensorType = typename FeaturePointsType::PixelType;
100 using PointType = typename FeaturePointsType::PointType;
101
103 enum
104 {
108 };
109
114 itkSetMacro(NonConnectivity, unsigned int);
115 itkGetMacro(NonConnectivity, unsigned int);
117
122
124 itkSetMacro(BlockRadius, SizeType);
125 itkGetConstReferenceMacro(BlockRadius, SizeType);
127
129 itkSetMacro(ComputeStructureTensors, bool);
130 itkGetMacro(ComputeStructureTensors, bool);
131 itkBooleanMacro(ComputeStructureTensors);
133
135 itkSetClampMacro(SelectFraction, double, 0, 1);
136 itkGetMacro(SelectFraction, double);
138
142
143protected:
146 void
147 PrintSelf(std::ostream & os, Indent indent) const override;
148
149 void
150 GenerateData() override;
151
156 void
158
159private:
160 unsigned int m_NonConnectivity{};
161 std::vector<OffsetType> m_NonConnectivityOffsets{};
165};
166} // end namespace itk
167
168#ifndef ITK_MANUAL_INSTANTIATION
169# include "itkMaskFeaturePointSelectionFilter.hxx"
170#endif
171
172#endif
An image region represents a structured region of data.
Control indentation during Print() invocation.
Definition itkIndent.h:50
~MaskFeaturePointSelectionFilter() override=default
itkSetInputMacro(MaskImage, MaskType)
typename FeaturePointsType::Pointer FeaturePointsPointer
void PrintSelf(std::ostream &os, Indent indent) const override
itkGetInputMacro(MaskImage, MaskType)
ImageToMeshFilter< TImage, TFeatures > Superclass
typename FeaturePointsType::PointType PointType
typename FeaturePointsType::PixelType StructureTensorType
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition itkPointSet.h:82
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional index in a n-dimensional image.
Definition itkIndex.h:69
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition itkOffset.h:67
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition itkSize.h:70