Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkDftImageFilter.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 __itkDftImageFilter_h_
23 #define __itkDftImageFilter_h_
24 
25 #include <MitkFiberTrackingExports.h>
26 #include <itkImageToImageFilter.h>
27 #include <itkDiffusionTensor3D.h>
28 #include <vcl_complex.h>
29 #include <mitkFiberfoxParameters.h>
30 
31 namespace itk{
32 
36 template< class TPixelType >
38  public ImageToImageFilter< Image< vcl_complex< TPixelType > >, Image< vcl_complex< TPixelType > > >
39 {
40 
41 public:
42 
47  typedef itk::Statistics::MersenneTwisterRandomVariateGenerator RandGenType;
48 
50  itkFactorylessNewMacro(Self)
51  itkCloneMacro(Self)
52 
54  itkTypeMacro(DftImageFilter, ImageToImageFilter)
55 
56  typedef typename Superclass::InputImageType InputImageType;
57  typedef typename Superclass::OutputImageType OutputImageType;
58  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
59 
60  void SetParameters( FiberfoxParameters<double> param ){ m_Parameters = param; }
61 
62 protected:
65 
67  void ThreadedGenerateData( const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId);
68 
69 private:
70 
71  FiberfoxParameters<double> m_Parameters;
72 };
73 
74 }
75 
76 #ifndef ITK_MANUAL_INSTANTIATION
77 #include "itkDftImageFilter.cpp"
78 #endif
79 
80 #endif //__itkDftImageFilter_h_
81 
void SetParameters(FiberfoxParameters< double > param)
SmartPointer< const Self > ConstPointer
2D Discrete Fourier Transform Filter (complex to real). Special issue for Fiberfox -> rearranges slic...
Superclass::OutputImageType OutputImageType
ImageToImageFilter< Image< vcl_complex< TPixelType > >, Image< vcl_complex< TPixelType > > > Superclass
itk::Statistics::MersenneTwisterRandomVariateGenerator RandGenType
Datastructure to manage the Fiberfox signal generation parameters.
Superclass::OutputImageRegionType OutputImageRegionType
Image class for storing images.
Definition: mitkImage.h:76
Superclass of all classes having one or more Images as input and generating Images as output...
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
SmartPointer< Self > Pointer