ITK  6.0.0
Insight Toolkit
itkImageToMeshFilter.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 itkImageToMeshFilter_h
19#define itkImageToMeshFilter_h
20
21#include "itkMeshSource.h"
22
23namespace itk
24{
35template <typename TInputImage, typename TOutputMesh>
36class ITK_TEMPLATE_EXPORT ImageToMeshFilter : public MeshSource<TOutputMesh>
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(ImageToMeshFilter);
40
46
48 itkOverrideGetNameOfClassMacro(ImageToMeshFilter);
49
52 using Superclass::MakeOutput;
55
57 using InputImageType = TInputImage;
61 using InputImagePixelType = typename InputImageType::PixelType;
62
64 using OutputMeshType = TOutputMesh;
66
68 using Superclass::SetInput;
69 void
70 SetInput(unsigned int idx, const InputImageType * input);
71 void
72 SetInput(const InputImageType * input)
73 {
74 this->SetInput(0, input);
75 }
79 const InputImageType *
80 GetInput(unsigned int idx);
81 const InputImageType *
83 {
84 return this->GetInput(0);
85 }
89 OutputMeshType *
91
93 void
95
96protected:
98 ~ImageToMeshFilter() override = default;
99};
100} // end namespace itk
101
102#ifndef ITK_MANUAL_INSTANTIATION
103# include "itkImageToMeshFilter.hxx"
104#endif
105
106#endif
ImageToMeshFilter is the base class for all process objects that output Mesh data and require image d...
~ImageToMeshFilter() override=default
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
const InputImageType * GetInput()
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
void GenerateOutputInformation() override
void SetInput(const InputImageType *input)
const InputImageType * GetInput(unsigned int idx)
OutputMeshType * GetOutput()
void SetInput(unsigned int idx, const InputImageType *input)
DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
typename OutputMeshType::Pointer OutputMeshPointer
Light weight base class for most itk classes.
Base class for all process objects that output mesh data.
Definition: itkMeshSource.h:50
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....