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
mitkDiffusionImageCreationFilter.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 DIFFUSIONIMAGECREATIONFILTER_H
18 #define DIFFUSIONIMAGECREATIONFILTER_H
19 
20 #include "mitkImageToImageFilter.h"
23 
24 namespace mitk
25 {
26 
31 {
33  : m_GradientDirections(nullptr)
34  {
35  m_BValue = -1;
36  }
37 
38  float m_BValue;
42 };
43 
55  : public ImageToImageFilter
56 {
57 public:
61 
62  itkNewMacro(Self)
63 
64  typedef short DiffusionPixelType;
66 
67  typedef mitk::Image OutputType;
71  typedef mitk::DiffusionPropertyHelper::GradientDirectionsContainerType GradientDirectionContainerType;
72 
77  void SetReferenceImage( mitk::Image::Pointer reference_image );
78 
85  void SetHeaderDescriptor( DiffusionImageHeaderDescriptor header_descriptor );
86 
87  virtual void GenerateData() override;
88 protected:
90  ~DiffusionImageCreationFilter();
91 
92  GradientDirectionContainerType::Pointer InternalGetGradientDirections( );
93  MeasurementFrameType InternalGetMeasurementFrame();
94  float InternalGetBValue();
95 
96  VectorImageType::Pointer RemapIntoVectorImage( mitk::Image::Pointer input);
97 
98  mitk::Image::Pointer m_ReferenceImage;
99 
100  DiffusionImageHeaderDescriptor m_HeaderDescriptor;
101  bool m_HeaderDescriptorSet;
102 };
103 
104 } //end namespace mitk
105 
106 #endif // DIFFUSIONIMAGECREATIONFILTER_H
mitk::DiffusionPropertyHelper::MeasurementFrameType m_MeasurementFrame
The DiffusionImageCreationFilter class creates a diffusion-weighted image out of a given 3D+t regular...
itk::SmartPointer< Self > Pointer
Base of all data objects.
Definition: mitkBaseData.h:39
Superclass of all classes generating some kind of mitk::BaseData.
Helper class for mitk::Images containing diffusion weighted data.
DataCollection - Class to facilitate loading/accessing structured data.
mitk::BValueMapProperty::BValueMap BValueMapType
#define MITKDIFFUSIONCORE_EXPORT
mitk::DiffusionPropertyHelper::GradientDirectionsContainerType::Pointer m_GradientDirections
map::core::discrete::Elements< 3 >::InternalImageType ImageType
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
mitk::DiffusionPropertyHelper::BValueMapType m_BValueMapType
Superclass of all classes having one or more Images as input and generating Images as output...
The DiffusionImageHeaderDescriptor struct bundles the necessary diffusion-weighted image header meta ...
mitk::DiffusionPropertyHelper::ImageType VectorImageType
mitk::MeasurementFrameProperty::MeasurementFrameType MeasurementFrameType
mitk::DiffusionPropertyHelper::MeasurementFrameType MeasurementFrameType
mitk::DiffusionPropertyHelper::GradientDirectionType GradientDirectionType
mitk::DiffusionPropertyHelper::GradientDirectionsContainerType GradientDirectionContainerType