Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkVectorImageToImageFilter.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 /*===================================================================
18 
19 This file is based heavily on a corresponding ITK filter.
20 
21 ===================================================================*/
22 #ifndef __itkVectorImageToImageFilter_h_
23 #define __itkVectorImageToImageFilter_h_
24 
25 #include "itkImageToImageFilter.h"
26 #include "itkVectorImage.h"
27 
28 namespace itk{
35 template< class TPixelType >
37  public ImageToImageFilter< VectorImage < TPixelType, 3 >, Image < TPixelType, 3 > >
38 {
39 
40 public:
41 
45  typedef ImageToImageFilter< VectorImage < TPixelType, 3 >, Image < TPixelType, 3 > > Superclass;
46 
48  itkFactorylessNewMacro(Self)
49  itkCloneMacro(Self)
50 
52  itkTypeMacro(VectorImageToImageFilter, ImageToImageFilter)
53 
54  typedef typename Superclass::InputImageType InputImageType;
55  typedef typename Superclass::OutputImageType OutputImageType;
56  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
57 
58  itkSetMacro( Index, unsigned int)
59 
60  protected:
61  VectorImageToImageFilter();
62  ~VectorImageToImageFilter() {}
63  void PrintSelf(std::ostream& os, Indent indent) const;
64 
65  //void BeforeThreadedGenerateData();
66  virtual void GenerateData();
67 
68  unsigned int m_Index;
69 };
70 
71 }
72 
73 #ifndef ITK_MANUAL_INSTANTIATION
75 #endif
76 
77 #endif //__itkVectorImageToImageFilter_h_
Superclass::InputImageType InputImageType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputImageRegionType OutputImageRegionType
SmartPointer< const Self > ConstPointer
ImageToImageFilter< VectorImage< TPixelType, 3 >, Image< TPixelType, 3 > > Superclass
Superclass::OutputImageType OutputImageType
This class extracts an image out of a vectorimage.