NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
mitkStereoDistortionCorrectionVideoProcessor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef mitkStereoDistortionCorrectionVideoProcessor_h
16 #define mitkStereoDistortionCorrectionVideoProcessor_h
17 
18 #include "niftkOpenCVExports.h"
20 
25 namespace mitk {
26 
28 {
29 
30 public:
31 
33  mitkNewMacro3Param(StereoDistortionCorrectionVideoProcessor, const bool&, const std::string&, const std::string&)
34 
35 
38  void SetMatrices(
39  const CvMat& intrinsicLeft,
40  const CvMat& distortionLeft,
41  const CvMat& intrinsicRight,
42  const CvMat& distortionRight
43  );
44 
48  virtual void Initialize() override;
49 
50 protected:
51 
53  StereoDistortionCorrectionVideoProcessor(const bool& writeInterleaved, CvCapture *capture, CvVideoWriter *writer);
54  StereoDistortionCorrectionVideoProcessor(const bool& writeInterleaved, const std::string&, const std::string&);
55 
57  StereoDistortionCorrectionVideoProcessor& operator=(const StereoDistortionCorrectionVideoProcessor&); // Purposefully not implemented.
58 
59  virtual void DoProcessing(
60  const IplImage &leftInput,
61  const IplImage &rightInput,
62  IplImage &leftOutput,
63  IplImage &rightOutput) override;
64 
65 private:
66 
67  CvMat *m_IntrinsicLeft;
68  CvMat *m_DistortionLeft;
69  IplImage *m_MapXLeft;
70  IplImage *m_MapYLeft;
71 
72  CvMat *m_IntrinsicRight;
73  CvMat *m_DistortionRight;
74  IplImage *m_MapXRight;
75  IplImage *m_MapYRight;
76 
77 }; // end class
78 
79 } // end namespace
80 
81 #endif // MITKSTEREODISTORTIONCORRECTIONVIDEOPROCESSOR_H
Definition: ReceptorMemberCommandTest.cxx:25
Definition: mitkStereoDistortionCorrectionVideoProcessor.h:27
#define NIFTKOPENCV_EXPORT
Definition: niftkSequentialCpuQds.h:27
Definition: mitkStereoOneTimePointVideoProcessorTemplateMethod.h:28
GLsizei const GLcharARB ** string
Definition: glew.h:5194