Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
itkTractsToFiberEndingsImageFilter.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 __itkTractsToFiberEndingsImageFilter_h__
17 #define __itkTractsToFiberEndingsImageFilter_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 TractsToFiberEndingsImageFilter : public ImageSource< OutputImageType >
32 {
33 
34 public:
36  typedef ProcessObject Superclass;
39 
41 
42  itkFactorylessNewMacro(Self)
43  itkCloneMacro(Self)
44  itkTypeMacro( TractsToFiberEndingsImageFilter, ImageSource )
45 
47  itkSetMacro( UpsamplingFactor, float)
48  itkGetMacro( UpsamplingFactor, float)
49 
51  itkSetMacro( InvertImage, bool)
52  itkGetMacro( InvertImage, bool)
53 
54  itkSetMacro( FiberBundle, mitk::FiberBundle::Pointer)
55  itkSetMacro( InputImage, typename OutputImageType::Pointer)
56 
58  itkSetMacro( UseImageGeometry, bool)
59  itkGetMacro( UseImageGeometry, bool)
60 
61  itkSetMacro( BinaryOutput, bool)
62 
63  void GenerateData();
64 
65 protected:
66 
67  itk::Point<float, 3> GetItkPoint(double point[3]);
68 
69  TractsToFiberEndingsImageFilter();
70  virtual ~TractsToFiberEndingsImageFilter();
71 
72  mitk::FiberBundle::Pointer m_FiberBundle;
77  typename OutputImageType::Pointer m_InputImage;
78 };
79 
80 }
81 
82 #ifndef ITK_MANUAL_INSTANTIATION
84 #endif
85 
86 #endif // __itkTractsToFiberEndingsImageFilter_h__
float m_UpsamplingFactor
use higher resolution for ouput image
bool m_UseImageGeometry
output image is given other geometry than fiberbundle (input image geometry)
DataCollection - Class to facilitate loading/accessing structured data.
Generates image where the pixel values are set according to the number of fibers ending in the voxel...
unsigned short PixelType
itk::Point< float, 3 > GetItkPoint(double point[3])
mitk::FiberBundle::Pointer m_FiberBundle
input fiber bundle