RTK  1.4.0
Reconstruction Toolkit
rtkVectorImageToImageFilter.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  * http://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 rtkVectorImageToImageFilter_h
19 #define rtkVectorImageToImageFilter_h
20 
21 #include "rtkMacro.h"
22 
23 #include <itkImageToImageFilter.h>
25 
26 namespace rtk
27 {
46 template< typename InputImageType, typename OutputImageType>
47 class VectorImageToImageFilter : public itk::ImageToImageFilter< InputImageType, OutputImageType >
48 {
49 public:
54 
55  typedef typename OutputImageType::RegionType OutputImageRegionType;
56 
58  itkNewMacro(Self)
59 
60 
62 
63 protected:
64  VectorImageToImageFilter();
65  virtual ~VectorImageToImageFilter() ITK_OVERRIDE {}
66 
67  void GenerateOutputInformation() ITK_OVERRIDE;
68  void GenerateInputRequestedRegion() ITK_OVERRIDE;
69 
71  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType itkNotUsed(threadId)) ITK_OVERRIDE;
72 
74  const itk::ImageRegionSplitterBase* GetImageRegionSplitter(void) const ITK_OVERRIDE;
76 
77 private:
78  VectorImageToImageFilter(const Self &); //purposely not implemented
79  void operator=(const Self &); //purposely not implemented
80 };
81 } //namespace ITK
82 
83 
84 #ifndef ITK_MANUAL_INSTANTIATION
85 #include "rtkVectorImageToImageFilter.hxx"
86 #endif
87 
88 #endif
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType) override
itk::ImageRegionSplitterDirection::Pointer m_Splitter
void GenerateOutputInformation() override
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
unsigned int ThreadIdType
OutputImageType::RegionType OutputImageRegionType
Re-writes a vector image as an image.
void operator=(const Self &)
const itk::ImageRegionSplitterBase * GetImageRegionSplitter(void) const override
void GenerateInputRequestedRegion() override