Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkTractDensityImageFilter.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 #ifndef __itkTractDensityImageFilter_h__
17 #define __itkTractDensityImageFilter_h__
18 
19 #include <itkImageSource.h>
20 #include <itkImage.h>
21 #include <itkVectorContainer.h>
22 #include <itkRGBAPixel.h>
23 #include <mitkFiberBundle.h>
24 
25 namespace itk{
26 
30 template< class OutputImageType >
31 class TractDensityImageFilter : public ImageSource< OutputImageType >
32 {
33 
34 public:
36  typedef ProcessObject Superclass;
39 
41 
42  itkFactorylessNewMacro(Self)
43  itkCloneMacro(Self)
44  itkTypeMacro( TractDensityImageFilter, ImageSource )
45 
46  itkSetMacro( UpsamplingFactor, float)
47  itkGetMacro( UpsamplingFactor, float)
48  itkSetMacro( InvertImage, bool)
49  itkGetMacro( InvertImage, bool)
50  itkSetMacro( BinaryOutput, bool)
51  itkGetMacro( BinaryOutput, bool)
52  itkSetMacro( OutputAbsoluteValues, bool)
53  itkGetMacro( OutputAbsoluteValues, bool)
54  itkSetMacro( UseImageGeometry, bool)
55  itkGetMacro( UseImageGeometry, bool)
56  itkSetMacro( FiberBundle, mitk::FiberBundle::Pointer)
57  itkSetMacro( InputImage, typename OutputImageType::Pointer)
58  itkSetMacro( UseTrilinearInterpolation, bool )
59  itkSetMacro( DoFiberResampling, bool )
60 
61  void GenerateData();
62 
63 protected:
64 
65  itk::Point<float, 3> GetItkPoint(double point[3]);
66 
67  TractDensityImageFilter();
68  virtual ~TractDensityImageFilter();
69 
70  typename OutputImageType::Pointer m_InputImage;
71  mitk::FiberBundle::Pointer m_FiberBundle;
79 };
80 
81 }
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
85 #endif
86 
87 #endif // __itkTractDensityImageFilter_h__
SmartPointer< const Self > ConstPointer
OutputImageType::PixelType OutPixelType
Generates tract density images from input fiberbundles (Calamante 2010).
float m_UpsamplingFactor
use higher resolution for ouput image
DataCollection - Class to facilitate loading/accessing structured data.
bool m_InvertImage
voxelvalue = 1-voxelvalue
bool m_BinaryOutput
generate binary fiber envelope
OutputImageType::Pointer m_InputImage
use input image geometry to initialize output image
bool m_OutputAbsoluteValues
do not normalize image values to 0-1
bool m_UseImageGeometry
use input image geometry to initialize output image
unsigned short PixelType
mitk::FiberBundle::Pointer m_FiberBundle
input fiber bundle
itk::Point< float, 3 > GetItkPoint(double point[3])