Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkAdcImageFilter.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 __itkAdcImageFilter_h_
23 #define __itkAdcImageFilter_h_
24 
25 #include "itkImageToImageFilter.h"
26 #include "itkVectorImage.h"
28 
29 namespace itk{
33 template< class TInPixelType, class TOutPixelType >
35  public ImageToImageFilter< VectorImage< TInPixelType, 3 >, Image< TOutPixelType, 3 > >
36 {
37 
38 public:
39 
43  typedef ImageToImageFilter< VectorImage< TInPixelType, 3 >, Image< TOutPixelType, 3 > > Superclass;
46 
48  itkFactorylessNewMacro(Self)
49  itkCloneMacro(Self)
50 
52  itkTypeMacro(AdcImageFilter, ImageToImageFilter)
53 
54  typedef typename Superclass::InputImageType InputImageType;
55  typedef typename Superclass::OutputImageType OutputImageType;
56  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
57 
58  itkSetMacro( B_value, double )
59  itkSetMacro( GradientDirections, GradientContainerType )
60 
61  protected:
62  AdcImageFilter();
63  ~AdcImageFilter() {}
64  void PrintSelf(std::ostream& os, Indent indent) const;
65 
67  void ThreadedGenerateData( const OutputImageRegionType &outputRegionForThread, ThreadIdType);
68 
69  double m_B_value;
70  GradientContainerType m_GradientDirections;
71 };
72 
73 }
74 
75 #ifndef ITK_MANUAL_INSTANTIATION
76 #include "itkAdcImageFilter.txx"
77 #endif
78 
79 #endif //__itkAdcImageFilter_h_
80 
itk::SmartPointer< Self > Pointer
mitk::DiffusionPropertyHelper::GradientDirectionsContainerType::Pointer GradientContainerType
void PrintSelf(std::ostream &os, Indent indent) const
ImageToImageFilter< VectorImage< TInPixelType, 3 >, Image< TOutPixelType, 3 > > Superclass
SmartPointer< Self > Pointer
GradientContainerType m_GradientDirections
Superclass::OutputImageType OutputImageType
GradientDirectionsProperty::GradientDirectionType GradientDirectionType
mitk::DiffusionPropertyHelper::GradientDirectionType GradientDirectionType
void BeforeThreadedGenerateData()
SmartPointer< const Self > ConstPointer
Superclass::InputImageType InputImageType
Superclass::OutputImageRegionType OutputImageRegionType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType)