Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFDistanceImageToPointSetFilter.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 __mitkToFDistanceImageToPointSetFilter_h
17 #define __mitkToFDistanceImageToPointSetFilter_h
18 
19 
20 #include <mitkCameraIntrinsics.h>
21 #include "mitkImage.h"
22 #include "mitkPointSet.h"
23 #include <mitkPointSetSource.h>
24 #include "mitkImageSource.h"
26 #include <MitkToFProcessingExports.h>
27 
28 namespace mitk
29 {
47  class MITKTOFPROCESSING_EXPORT ToFDistanceImageToPointSetFilter : public PointSetSource
48  {
49  public:
50 
52  itkFactorylessNewMacro(Self)
53  itkCloneMacro(Self)
54 
56 
58  itkSetMacro(InterPixelDistance,mitk::ToFProcessingCommon::ToFPoint2D);
59  itkGetMacro(InterPixelDistance,mitk::ToFProcessingCommon::ToFPoint2D);
60 
61 
66  virtual void SetInput(const Image* distanceImage);
67 
73  virtual void SetInput(unsigned int idx,const Image* distanceImage);
74 
78  Image* GetInput();
79 
83  Image* GetInput(unsigned int idx);
84 
89  void SetSubset( std::vector<itk::Index<3> > subset);
90 
96  void SetSubset( mitk::PointSet::Pointer pointSet);
97 
101  void SetReconstructionMode(bool withoutInterpixdist = true);
102 
106  bool GetReconstructionMode();
107 
108 
109  protected:
118  virtual void GenerateOutputInformation() override;
123  virtual void GenerateData() override;
131  void CreateOutputsForAllInputs();
132 
133  std::vector<itk::Index<3> > m_Subset;
137  };
138 } //END mitk namespace
139 #endif
itk::SmartPointer< Self > Pointer
class representing camera intrinsics and related functions
bool m_ReconstructionMode
true = Reconstruction without interpixeldistance and with focal lengths in pixel units. false = Reconstruction with interpixeldistance and with focal length in mm.
std::vector< itk::Index< 3 > > m_Subset
If this subset is specified only the contained indizes are converted to cartesian coordinates...
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
itk::Point< ToFScalarType, 2 > ToFPoint2D
Image class for storing images.
Definition: mitkImage.h:76
ToFProcessingCommon::ToFPoint2D m_InterPixelDistance
distance in mm between two adjacent pixels on the ToF camera chip
mitk::CameraIntrinsics::Pointer m_CameraIntrinsics
Member holding the intrinsic parameters needed for PointSet calculation.
Superclass of all classes generating point sets (instances of class mitk::PointSet) as output...
Converts a Time-of-Flight (ToF) distance image to a PointSet using the pinhole camera model for coord...