ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkImageToParametricSpaceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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:
47  public ImageToMeshFilter< TInputImage, TOutputMesh >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(ImageToParametricSpaceFilter);
51 
57 
59  itkNewMacro(Self);
60 
63 
65  using InputImageType = TInputImage;
66  using InputImageConstPointer = typename InputImageType::ConstPointer;
68  using InputImagePixelType = typename InputImageType::PixelType;
69 
71  using OutputMeshType = TOutputMesh;
73  using OutputMeshPointer = typename OutputMeshType::Pointer;
74  using PointsContainer = typename OutputMeshType::PointsContainer;
75  using PointIdentifier = typename OutputMeshType::PointIdentifier;
76  using PointsContainerPointer = typename PointsContainer::Pointer;
77  using PointsContainerIterator = typename PointsContainer::Iterator;
78  using PointDataContainer = typename OutputMeshType::PointDataContainer;
79  using PointDataContainerPointer = typename PointDataContainer::Pointer;
80  using PointDataContainerIterator = typename PointDataContainer::Iterator;
81 
83  static constexpr unsigned int PointDimension = TOutputMesh::PointDimension;
84 
86  void GenerateData() override;
87 
89  void GenerateOutputInformation() override;
90 
96  itkSetMacro(ComputeIndices, bool);
97 
98 protected:
100  ~ImageToParametricSpaceFilter() override = default;
101  void PrintSelf(std::ostream & os, Indent indent) const override;
102 
103 private:
107 };
108 } // end namespace itk
109 
110 #ifndef ITK_MANUAL_INSTANTIATION
111 #include "itkImageToParametricSpaceFilter.hxx"
112 #endif
113 
114 #endif
Light weight base class for most itk classes.
typename OutputMeshType::PointType PointType
Generate a mesh of parametric space from input images.
typename OutputMeshType::PointsContainer PointsContainer
typename InputImageType::RegionType InputImageRegionType
typename OutputMeshType::Pointer OutputMeshPointer
typename InputImageType::PixelType InputImagePixelType
ImageToMeshFilter is the base class for all process objects that output Mesh data and require image d...
typename PointDataContainer::Pointer PointDataContainerPointer
typename OutputMeshType::PointIdentifier PointIdentifier
typename PointsContainer::Iterator PointsContainerIterator
typename PointDataContainer::Iterator PointDataContainerIterator
typename PointsContainer::Pointer PointsContainerPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename OutputMeshType::PointDataContainer PointDataContainer
typename InputImageType::ConstPointer InputImageConstPointer