ITK  5.4.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 
21 #include "itkImageToMeshFilter.h"
22 
23 namespace itk
24 {
45 template <typename TInputImage, typename TOutputMesh>
46 class ITK_TEMPLATE_EXPORT ImageToParametricSpaceFilter : public ImageToMeshFilter<TInputImage, TOutputMesh>
47 {
48 public:
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
90  GenerateOutputInformation() override;
91 
97  itkSetMacro(ComputeIndices, bool);
98  itkGetConstMacro(ComputeIndices, bool);
99  itkBooleanMacro(ComputeIndices);
102 protected:
104  ~ImageToParametricSpaceFilter() override = default;
105  void
106  PrintSelf(std::ostream & os, Indent indent) const override;
107 
108 private:
111  bool m_ComputeIndices{};
112 };
113 } // end namespace itk
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 # include "itkImageToParametricSpaceFilter.hxx"
117 #endif
118 
119 #endif
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::ImageToParametricSpaceFilter::PointIdentifier
typename OutputMeshType::PointIdentifier PointIdentifier
Definition: itkImageToParametricSpaceFilter.h:74
ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAddImageFilter.h:94
itk::ImageToParametricSpaceFilter::PointDataContainerIterator
typename PointDataContainer::Iterator PointDataContainerIterator
Definition: itkImageToParametricSpaceFilter.h:79
itk::ImageToParametricSpaceFilter::PointDataContainer
typename OutputMeshType::PointDataContainer PointDataContainer
Definition: itkImageToParametricSpaceFilter.h:77
itk::ImageToParametricSpaceFilter::PointDataContainerPointer
typename PointDataContainer::Pointer PointDataContainerPointer
Definition: itkImageToParametricSpaceFilter.h:78
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::ImageToParametricSpaceFilter::PointsContainerIterator
typename PointsContainer::Iterator PointsContainerIterator
Definition: itkImageToParametricSpaceFilter.h:76
itk::ImageToMeshFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToMeshFilter.h:57
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToMeshFilter
ImageToMeshFilter is the base class for all process objects that output Mesh data and require image d...
Definition: itkImageToMeshFilter.h:36
itk::ImageToParametricSpaceFilter::PointsContainer
typename OutputMeshType::PointsContainer PointsContainer
Definition: itkImageToParametricSpaceFilter.h:73
itkImageToMeshFilter.h
itk::ImageToParametricSpaceFilter
Generate a mesh of parametric space from input images.
Definition: itkImageToParametricSpaceFilter.h:46
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ImageToMeshFilter::OutputMeshPointer
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkImageToMeshFilter.h:65
itk::ImageToParametricSpaceFilter::PointType
typename OutputMeshType::PointType PointType
Definition: itkImageToParametricSpaceFilter.h:71
itk::ImageToMeshFilter::OutputMeshType
TOutputMesh OutputMeshType
Definition: itkImageToMeshFilter.h:64
itk::ImageToMeshFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToMeshFilter.h:59
itk::ImageToParametricSpaceFilter::PointsContainerPointer
typename PointsContainer::Pointer PointsContainerPointer
Definition: itkImageToParametricSpaceFilter.h:75
itk::ImageToMeshFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToMeshFilter.h:60
itk::ImageToMeshFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToMeshFilter.h:61