Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkB0ImageExtractionImageFilter.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 __itkB0ImageExtractionImageFilter_h_
18 #define __itkB0ImageExtractionImageFilter_h_
19 
20 #include "itkImageToImageFilter.h"
21 
22 namespace itk{
28  template< class TInputImagePixelType,
29  class TOutputImagePixelType >
31  public ImageToImageFilter< VectorImage<TInputImagePixelType, 3>,
32  Image< TOutputImagePixelType, 3 > >
33  {
34 
35  public:
36 
40  typedef ImageToImageFilter< VectorImage< TInputImagePixelType, 3 >,
41  Image< TOutputImagePixelType, 3 > >
43 
45  itkFactorylessNewMacro(Self)
46  itkCloneMacro(Self)
47 
49  itkTypeMacro(B0ImageExtractionImageFilter,
50  ImageToImageFilter);
51 
52  typedef TInputImagePixelType InputPixelType;
53 
54  typedef TOutputImagePixelType OutputPixelType;
55 
58 
59  typedef typename Superclass::OutputImageRegionType
61 
62  typedef vnl_vector_fixed< double, 3 > GradientDirectionType;
63 
64  typedef itk::VectorContainer< unsigned int, GradientDirectionType >
66 
68  { return m_Directions; }
70  { this->m_Directions = directions; }
71 
72  protected:
73 
76 
77  void GenerateData();
78 
80 
81  };
82 
83 }
84 
85 #ifndef ITK_MANUAL_INSTANTIATION
87 #endif
88 
89 #endif //__itkB0ImageExtractionImageFilter_h_
90 
itk::SmartPointer< Self > Pointer
Superclass::OutputImageRegionType OutputImageRegionType
This class takes as input a T2-weighted image and computes a brainmask.
ImageToImageFilter< VectorImage< TInputImagePixelType, 3 >, Image< TOutputImagePixelType, 3 > > Superclass
GradientDirectionContainerType::Pointer m_Directions
GradientDirectionContainerType::Pointer GetDirections()
itk::VectorContainer< unsigned int, GradientDirectionType > GradientDirectionContainerType
vnl_vector_fixed< double, 3 > GradientDirectionType
void SetDirections(GradientDirectionContainerType::Pointer directions)