ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpecializedImagePipelineFunctor.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 itkSpecializedImagePipelineFunctor_h
19#define itkSpecializedImagePipelineFunctor_h
20#include "itkPipeline.h"
21#include "itkImage.h"
22#include "itkVectorImage.h"
23
24namespace itk
25{
26
27namespace wasm
28{
29
36template <template <typename TImage> class TPipelineFunctor, unsigned int VDimension, typename TPixel>
38{
39public:
40 int
42 {
43 using ImageType = itk::Image<TPixel, VDimension>;
44
45 using PipelineType = TPipelineFunctor<ImageType>;
46 return PipelineType()(pipeline);
47 }
48};
49
56template <template <typename TImage> class TPipelineFunctor, unsigned int VDimension, typename TComponent>
57class SpecializedImagePipelineFunctor<TPipelineFunctor, VDimension, itk::VariableLengthVector<TComponent>>
58{
59public:
60 int
62 {
64
65 using PipelineType = TPipelineFunctor<ImageType>;
66 return PipelineType()(pipeline);
67 }
68};
69
70} // end namespace wasm
71} // end namespace itk
72
73#endif
Templated n-dimensional image class.
Definition itkImage.h:89
Templated n-dimensional vector image class.
Internal class to dispatch for pipeline execution on itk::Image or itk::VectorImage.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....