Image Component Library (ICL)
InverseUndistortionProcessor.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLMarkers/src/ICLMarkers/ **
10 ** InverseUndistortionProcessor.h **
11 ** Module : ICLMarkers **
12 ** Authors: Christof Elbrechter **
13 ** **
14 ** **
15 ** GNU LESSER GENERAL PUBLIC LICENSE **
16 ** This file may be used under the terms of the GNU Lesser General **
17 ** Public License version 3.0 as published by the **
18 ** **
19 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
20 ** included in the packaging of this file. Please review the **
21 ** following information to ensure the license requirements will **
22 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
23 ** **
24 ** The development of this software was supported by the **
25 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
26 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
27 ** Forschungsgemeinschaft (DFG) in the context of the German **
28 ** Excellence Initiative. **
29 ** **
30 ********************************************************************/
31 
32 #pragma once
33 
34 #include <ICLUtils/Point32f.h>
35 #include <ICLUtils/Uncopyable.h>
36 
37 #include <vector>
38 
39 namespace icl{
41 
44  struct Data;
45  Data *m_data;
46 
47  public:
48 
50  InverseUndistortionProcessor(bool preferOpenCL);
51 
54 
56  void setPreferOpenCL(bool preferOpenCL);
57 
59  const std::vector<utils::Point32f> &run(const std::vector<utils::Point32f> &p, const float kf[9]);
60  };
61 }
void setPreferOpenCL(bool preferOpenCL)
sets whether to try to use open cl
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
Data * m_data
internal data structure
Definition: InverseUndistortionProcessor.h:44
InverseUndistortionProcessor(bool preferOpenCL)
constructor
Utility class that performs gradient-descent based inverse undistortion mapping.
Definition: InverseUndistortionProcessor.h:43
const std::vector< utils::Point32f > & run(const std::vector< utils::Point32f > &p, const float kf[9])
performs the mapping with given distortion coefficients