ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageToWasmImageFilter.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 itkImageToWasmImageFilter_h
19#define itkImageToWasmImageFilter_h
20
21#include "itkProcessObject.h"
22#include "itkWasmImage.h"
23
24namespace itk
25{
32template <typename TImage>
33class ITK_TEMPLATE_EXPORT ImageToWasmImageFilter : public ProcessObject
34{
35public:
36 ITK_DISALLOW_COPY_AND_MOVE(ImageToWasmImageFilter);
37
43
45 itkNewMacro(Self);
46
48 itkOverrideGetNameOfClassMacro(ImageToWasmImageFilter);
49
52
53 using ImageType = TImage;
55
58 virtual void
59 SetInput(const ImageType * image);
60
61 virtual void
62 SetInput(unsigned int, const ImageType * image);
63
64 const ImageType *
66
67 const ImageType *
68 GetInput(unsigned int idx);
69
72 const WasmImageType *
73 GetOutput() const;
74
76 GetOutput(unsigned int idx);
77
78protected:
80 ~ImageToWasmImageFilter() override = default;
81
86
87 void
89 {} // do nothing
90 void
91 GenerateData() override;
92
93 void
94 PrintSelf(std::ostream & os, Indent indent) const override;
95};
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkImageToWasmImageFilter.hxx"
100#endif
101
102#endif
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
virtual void SetInput(const ImageType *image)
SmartPointer< const Self > ConstPointer
virtual void SetInput(unsigned int, const ImageType *image)
~ImageToWasmImageFilter() override=default
Superclass::DataObjectIdentifierType DataObjectIdentifierType
WasmImageType * GetOutput()
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ProcessObject::DataObjectPointer MakeOutput(const ProcessObject::DataObjectIdentifierType &) override
Make a DataObject of the correct type to used as the specified output.
const ImageType * GetInput()
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateData() override
const ImageType * GetInput(unsigned int idx)
WasmImageType * GetOutput(unsigned int idx)
const WasmImageType * GetOutput() const
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.
JSON representation for an itk::ImageBase.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....