ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkImageToVectorImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
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 rtkImageToVectorImageFilter_h
19#define rtkImageToVectorImageFilter_h
20
21#include "rtkMacro.h"
22
25
26namespace rtk
27{
45
46template <typename InputImageType, typename OutputImageType>
47class ITK_TEMPLATE_EXPORT ImageToVectorImageFilter : public itk::ImageToImageFilter<InputImageType, OutputImageType>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(ImageToVectorImageFilter);
51
56
57 using OutputImageRegionType = typename OutputImageType::RegionType;
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(ImageToVectorImageFilter);
64
68 itkSetMacro(NumberOfChannels, unsigned int);
69 itkGetMacro(NumberOfChannels, unsigned int);
70
71protected:
73 ~ImageToVectorImageFilter() override = default;
74
75 void
77 void
79
81 void
82 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
83 itk::ThreadIdType itkNotUsed(threadId)) override;
84
86 [[nodiscard]] const itk::ImageRegionSplitterBase *
87 GetImageRegionSplitter() const override;
89
90 unsigned int m_NumberOfChannels;
91};
92} // namespace rtk
93
94
95#ifndef ITK_MANUAL_INSTANTIATION
96# include "rtkImageToVectorImageFilter.hxx"
97#endif
98
99#endif
Divide an image region into several pieces.
Base class for filters that take an image as input and produce an image as output.
Implements transparent reference counting.
const itk::ImageRegionSplitterBase * GetImageRegionSplitter() const override
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
itk::ImageRegionSplitterDirection::Pointer m_Splitter
void GenerateInputRequestedRegion() override
~ImageToVectorImageFilter() override=default
void GenerateOutputInformation() override
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
typename OutputImageType::RegionType OutputImageRegionType
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)