Medical Imaging Interaction Toolkit  2023.12.00
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef mitkToFDistanceImageToPointSetFilter_h
13 #define mitkToFDistanceImageToPointSetFilter_h
14 
15 
16 #include <mitkCameraIntrinsics.h>
17 #include "mitkImage.h"
18 #include "mitkPointSet.h"
19 #include <mitkPointSetSource.h>
20 #include "mitkImageSource.h"
22 #include <MitkToFProcessingExports.h>
23 
24 namespace mitk
25 {
43  class MITKTOFPROCESSING_EXPORT ToFDistanceImageToPointSetFilter : public PointSetSource
44  {
45  public:
46 
48  itkFactorylessNewMacro(Self);
49  itkCloneMacro(Self);
50  itkSetMacro(CameraIntrinsics,mitk::CameraIntrinsics::Pointer);
51 
52  itkGetMacro(CameraIntrinsics,mitk::CameraIntrinsics::Pointer);
53  itkSetMacro(InterPixelDistance,mitk::ToFProcessingCommon::ToFPoint2D);
54  itkGetMacro(InterPixelDistance,mitk::ToFProcessingCommon::ToFPoint2D);
55 
56  using itk::ProcessObject::SetInput;
57 
62  virtual void SetInput(const Image* distanceImage);
63 
69  virtual void SetInput(unsigned int idx, const Image *distanceImage);
70 
74  Image* GetInput();
75 
79  Image* GetInput(unsigned int idx);
80 
85  void SetSubset( std::vector<itk::Index<3> > subset);
86 
92  void SetSubset( mitk::PointSet::Pointer pointSet);
93 
97  void SetReconstructionMode(bool withoutInterpixdist = true);
98 
102  bool GetReconstructionMode();
103 
104 
105  protected:
114  void GenerateOutputInformation() override;
119  void GenerateData() override;
127  void CreateOutputsForAllInputs();
128 
129  std::vector<itk::Index<3> > m_Subset;
130  mitk::CameraIntrinsics::Pointer m_CameraIntrinsics;
133  };
134 } //END mitk namespace
135 #endif
mitkImage.h
mitkPointSetSource.h
mitk::CameraIntrinsics
class representing camera intrinsics and related functions
Definition: mitkCameraIntrinsics.h:35
mitkCameraIntrinsics.h
mitk::ToFDistanceImageToPointSetFilter::m_Subset
std::vector< itk::Index< 3 > > m_Subset
If this subset is specified only the contained indizes are converted to cartesian coordinates.
Definition: mitkToFDistanceImageToPointSetFilter.h:129
mitk::ToFDistanceImageToPointSetFilter::m_ReconstructionMode
bool m_ReconstructionMode
true = Reconstruction without interpixeldistance and with focal lengths in pixel units....
Definition: mitkToFDistanceImageToPointSetFilter.h:132
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitk::ToFProcessingCommon::ToFPoint2D
itk::Point< ToFScalarType, 2 > ToFPoint2D
Definition: mitkToFProcessingCommon.h:42
mitkPointSet.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::PointSetSource
Superclass of all classes generating point sets (instances of class mitk::PointSet) as output.
Definition: mitkPointSetSource.h:31
mitkToFProcessingCommon.h
mitk::ToFDistanceImageToPointSetFilter::m_CameraIntrinsics
mitk::CameraIntrinsics::Pointer m_CameraIntrinsics
Member holding the intrinsic parameters needed for PointSet calculation.
Definition: mitkToFDistanceImageToPointSetFilter.h:130
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
itk::Index< 3 >
mitkImageSource.h
mitk::ToFDistanceImageToPointSetFilter
Converts a Time-of-Flight (ToF) distance image to a PointSet using the pinhole camera model for coord...
Definition: mitkToFDistanceImageToPointSetFilter.h:43
mitk::ToFDistanceImageToPointSetFilter::m_InterPixelDistance
ToFProcessingCommon::ToFPoint2D m_InterPixelDistance
distance in mm between two adjacent pixels on the ToF camera chip
Definition: mitkToFDistanceImageToPointSetFilter.h:131