ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmImageToImageFilter.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 itkWasmImageToImageFilter_h
19#define itkWasmImageToImageFilter_h
20
21#include "itkProcessObject.h"
22#include "itkWasmImage.h"
23
24namespace itk
25{
34template <typename TImage>
35class ITK_TEMPLATE_EXPORT WasmImageToImageFilter : public ProcessObject
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(WasmImageToImageFilter);
39
45
47 itkNewMacro(Self);
48
50 itkOverrideGetNameOfClassMacro(WasmImageToImageFilter);
51
54
55 using ImageType = TImage;
57
60 virtual void
61 SetInput(const WasmImageType * image);
62
63 virtual void
64 SetInput(unsigned int, const WasmImageType * image);
65
66 const WasmImageType *
68
69 const WasmImageType *
70 GetInput(unsigned int idx);
71
72 ImageType *
74 const ImageType *
75 GetOutput() const;
76
77 ImageType *
78 GetOutput(unsigned int idx);
79
80protected:
82 ~WasmImageToImageFilter() override = default;
83
88
89 void
91 {} // do nothing
92 void
93 GenerateData() override;
94
95 void
96 PrintSelf(std::ostream & os, Indent indent) const override;
97};
98} // end namespace itk
99
100#ifndef ITK_MANUAL_INSTANTIATION
101# include "itkWasmImageToImageFilter.hxx"
102#endif
103
104#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
DataObject::Pointer DataObjectPointer
DataObject::DataObjectIdentifierType DataObjectIdentifierType
Implements transparent reference counting.
SmartPointer< const Self > ConstPointer
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
virtual void SetInput(unsigned int, const WasmImageType *image)
Superclass::DataObjectIdentifierType DataObjectIdentifierType
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
void GenerateData() override
const WasmImageType * GetInput(unsigned int idx)
void PrintSelf(std::ostream &os, Indent indent) const override
const WasmImageType * GetInput()
~WasmImageToImageFilter() override=default
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
ImageType * GetOutput(unsigned int idx)
const ImageType * GetOutput() const
virtual void SetInput(const WasmImageType *image)
JSON representation for an itk::ImageBase.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....