ITK  6.0.0
Insight Toolkit
itkImageToParametricSpaceFilter.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 itkImageToParametricSpaceFilter_h
19#define itkImageToParametricSpaceFilter_h
20
22
23namespace itk
24{
45template <typename TInputImage, typename TOutputMesh>
46class ITK_TEMPLATE_EXPORT ImageToParametricSpaceFilter : public ImageToMeshFilter<TInputImage, TOutputMesh>
47{
48public:
49 ITK_DISALLOW_COPY_AND_MOVE(ImageToParametricSpaceFilter);
50
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(ImageToParametricSpaceFilter);
62
64 using InputImageType = TInputImage;
67 using InputImagePixelType = typename InputImageType::PixelType;
68
70 using OutputMeshType = TOutputMesh;
73 using PointsContainer = typename OutputMeshType::PointsContainer;
74 using PointIdentifier = typename OutputMeshType::PointIdentifier;
76 using PointsContainerIterator = typename PointsContainer::Iterator;
77 using PointDataContainer = typename OutputMeshType::PointDataContainer;
79 using PointDataContainerIterator = typename PointDataContainer::Iterator;
80
82 static constexpr unsigned int PointDimension = TOutputMesh::PointDimension;
83
85 void
86 GenerateData() override;
87
89 void
91
97 itkSetMacro(ComputeIndices, bool);
98 itkGetConstMacro(ComputeIndices, bool);
99 itkBooleanMacro(ComputeIndices);
102protected:
104 ~ImageToParametricSpaceFilter() override = default;
105 void
106 PrintSelf(std::ostream & os, Indent indent) const override;
107
108private:
111 bool m_ComputeIndices{};
112};
113} // end namespace itk
114
115#ifndef ITK_MANUAL_INSTANTIATION
116# include "itkImageToParametricSpaceFilter.hxx"
117#endif
118
119#endif
ImageToMeshFilter is the base class for all process objects that output Mesh data and require image d...
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::PixelType InputImagePixelType
typename OutputMeshType::Pointer OutputMeshPointer
Generate a mesh of parametric space from input images.
typename OutputMeshType::PointDataContainer PointDataContainer
typename PointDataContainer::Pointer PointDataContainerPointer
typename OutputMeshType::PointType PointType
typename PointDataContainer::Iterator PointDataContainerIterator
typename OutputMeshType::PointIdentifier PointIdentifier
typename PointsContainer::Pointer PointsContainerPointer
typename OutputMeshType::PointsContainer PointsContainer
~ImageToParametricSpaceFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename PointsContainer::Iterator PointsContainerIterator
void GenerateOutputInformation() override
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....