ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
55
57 using InputImageType = TInputImage;
58 using InputImagePointer = typename InputImageType::Pointer;
59 using InputImageConstPointer = typename InputImageType::ConstPointer;
60 using InputImageRegionType = typename InputImageType::RegionType;
61 using InputImagePixelType = typename InputImageType::PixelType;
62
64 using OutputMeshType = TOutputMesh;
65 using OutputMeshPointer = typename OutputMeshType::Pointer;
66
69 void
70 SetInput(unsigned int idx, const InputImageType * input);
71 void
72 SetInput(const InputImageType * input)
73 {
74 this->SetInput(0, input);
75 }
76
77
79 const InputImageType *
80 GetInput(unsigned int idx);
81 const InputImageType *
83 {
84 return this->GetInput(0);
85 }
86
87
89 OutputMeshType *
91
93 void
95 {}
96
97protected:
99 ~ImageToMeshFilter() override = default;
100};
101} // end namespace itk
102
103#ifndef ITK_MANUAL_INSTANTIATION
104# include "itkImageToMeshFilter.hxx"
105#endif
106
107#endif
SmartPointer< Self > Pointer
~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
SmartPointer< Self > Pointer
void SetInput(const InputImageType *input)
MeshSource< TOutputMesh > Superclass
const InputImageType * GetInput(unsigned int idx)
SmartPointer< const Self > ConstPointer
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.
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
typename OutputMeshType::Pointer OutputMeshPointer
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....