ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageToImageOfVectorsFilter.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 itkImageToImageOfVectorsFilter_h
19#define itkImageToImageOfVectorsFilter_h
20
22#include "itkVector.h"
23
24namespace itk
25{
51template <typename TInputImage, unsigned int VComponents = 3>
52class ITK_TEMPLATE_EXPORT ImageToImageOfVectorsFilter
53 : public ImageToImageFilter<
54 TInputImage,
55 Image<Vector<typename TInputImage::InternalPixelType, VComponents>, TInputImage::ImageDimension>>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(ImageToImageOfVectorsFilter);
59
61 TInputImage,
66 itkNewMacro(Self);
67 itkOverrideGetNameOfClassMacro(ImageToImageOfVectorsFilter);
68
69 using InputImageType = TInputImage;
70 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
71
72 using InputPixelType = typename InputImageType::InternalPixelType;
73
77
79
81
82 virtual void
84 {
85 this->SetInput(idx, inputImage);
86 }
87
88protected:
90 ~ImageToImageOfVectorsFilter() override = default;
91
92 void
94
95 void
96 DynamicThreadedGenerateData(const RegionType & outputRegionForThread) override;
97
98private:
99};
100} // end namespace itk
101
102#ifndef ITK_MANUAL_INSTANTIATION
103# include "itkImageToImageOfVectorsFilter.hxx"
104#endif
105
106#endif
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
typename Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
void BeforeThreadedGenerateData() override
typename OutputImageType::RegionType RegionType
Image< OutputPixelType, ImageDimension > OutputImageType
typename InputImageType::InternalPixelType InputPixelType
ImageToImageFilter< TInputImage, Image< Vector< typename TInputImage::InternalPixelType, VComponents >, TInputImage::ImageDimension > > Superclass
~ImageToImageOfVectorsFilter() override=default
Vector< InputPixelType, VComponents > OutputPixelType
void DynamicThreadedGenerateData(const RegionType &outputRegionForThread) override
virtual void SetNthInput(DataObjectPointerArraySizeType idx, const InputImageType *inputImage)
Templated n-dimensional image class.
Definition itkImage.h:89
ImageRegion< VImageDimension > RegionType
virtual void SetNthInput(DataObjectPointerArraySizeType idx, DataObject *input)
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....