Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkB0ImageExtractionToSeparateImageFilter.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 #ifndef ITKB0IMAGEEXTRACTIONTOSEPARATEIMAGEFILTER_H
18 #define ITKB0IMAGEEXTRACTIONTOSEPARATEIMAGEFILTER_H
19 
20 #include "itkImageToImageFilter.h"
21 
22 namespace itk
23 {
29 template< class TInputImagePixelType,
30  class TOutputImagePixelType >
32  public ImageToImageFilter< VectorImage<TInputImagePixelType, 3>,
33  Image< TOutputImagePixelType, 4 > >
34 {
35 public:
36 
40 
41  typedef TInputImagePixelType InputPixelType;
42  typedef TOutputImagePixelType OutputPixelType;
43 
44  typedef ImageToImageFilter< VectorImage<TInputImagePixelType, 3>,
45  Image< TOutputImagePixelType, 4 > > Superclass;
46 
49  //typedef typename Superclass::OutputImageType OutputImageType;
50  typedef Image< TOutputImagePixelType, 4 > OutputImageType;
51 
52  typedef typename OutputImageType::RegionType OutputImageRegionType;
53 
54  typedef vnl_vector_fixed< double, 3 > GradientDirectionType;
55 
56  typedef itk::VectorContainer< unsigned int, GradientDirectionType >
58 
59  typedef typename GradientDirectionContainerType::Iterator GradContainerIteratorType;
60 
62  itkFactorylessNewMacro(Self)
63  itkCloneMacro(Self)
64 
67  ImageToImageFilter);
68 
70  {
71  return m_Directions;
72  }
73 
75  {
76  this->m_Directions = directions;
77  }
78 
79 protected:
80 
83 
84  void GenerateData();
85 
91  virtual void CopyInformation( const DataObject *data);
92 
96  virtual void GenerateOutputInformation();
97 
99 };
100 
101 } // end namespace itk
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
105 #endif
106 
107 #endif // ITKB0IMAGEEXTRACTIONTOSEPARATEIMAGEFILTER_H
itk::SmartPointer< Self > Pointer
This class has an advanced functionality to the B0ImageExtractionImageFilter, however the b0 images a...
virtual void CopyInformation(const DataObject *data)
ImageToImageFilter< VectorImage< TInputImagePixelType, 3 >, Image< TOutputImagePixelType, 4 > > Superclass
GradientDirectionContainerType::Iterator GradContainerIteratorType
itk::Image< double, 3 > InputImageType
itk::VectorContainer< unsigned int, GradientDirectionType > GradientDirectionContainerType
void SetDirections(GradientDirectionContainerType::Pointer directions)