Image Component Library (ICL)
ImageUndistortion.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 : ICLIO/src/ICLIO/ImageUndistortion.h **
10 ** Module : ICLIO **
11 ** Authors: Christian Groszewski **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLCore/Img.h>
35 
36 namespace icl{
37  namespace io{
38 
40  public:
41  struct Impl;
42 
43  private:
44  Impl *impl;
45 
46 
47  public:
50 
52 
57  ImageUndistortion(const std::string &model, const std::vector<double> &params,
58  const utils::Size &imageSize);
59 
62 
64  ImageUndistortion &operator=(const ImageUndistortion &other);
65 
67  ImageUndistortion(const std::string &filename);
68 
70  const utils::Size &getImageSize() const;
71  const std::vector<double> &getParams() const;
72  const std::string &getModel() const;
73  const utils::Point32f operator()(const utils::Point32f &distortedPos) const;
74  void setParams(const std::vector<double> &params);
75  const core::Img32f &createWarpMap() const;
76 
77  inline bool isNull() const { return !impl; }
78  };
79 
81  ICLIO_API std::istream &operator>>(std::istream &is, ImageUndistortion &udist);
82 
84  ICLIO_API std::ostream &operator<<(std::ostream &s, const ImageUndistortion &udist);
85  } // namespace io
86 }
87 
undocument this line if you encounter any issues!
Definition: Any.h:37
#define ICLIO_API
Definition: CompatMacros.h:176
Size class of the ICL.
Definition: Size.h:61
Impl * impl
internal impl
Definition: ImageUndistortion.h:41
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
bool isNull() const
Definition: ImageUndistortion.h:77
ICLIO_API std::istream & operator>>(std::istream &is, ImageUndistortion &udist)
overloaded ostream operator for ImageUndistortion instances
std::ostream & operator<<(std::ostream &stream, const FourCC &fourCC)
overloaded ostream operator for type fourCC
Definition: FourCC.h:97
Definition: ImageUndistortion.h:39