Image Component Library (ICL)
CheckerboardDetector.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 : ICLCV/src/ICLCV/CheckerboardDetector.h **
10 ** Module : ICLCV **
11 ** Authors: Christof Elbrechter **
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 <ICLCore/Img.h>
34 #include <ICLUtils/Uncopyable.h>
36 #include <ICLUtils/Configurable.h>
37 
38 namespace icl{
39 
40  namespace cv{
41 
43 
47  struct Data;
48  Data *m_data;
49 
51  void init_properties();
52 
53  public:
54 
57 
59 
63  CheckerboardDetector(const utils::Size &size);
64 
67 
69 
73  void init(const utils::Size &size);
74 
76  struct Checkerboard{
77  bool found;
79  std::vector<utils::Point32f> corners;
81  };
82 
84  bool isNull() const;
85 
87 
91  const Checkerboard &detect(const core::Img8u &image);
92 
94  const Checkerboard &detect(const core::ImgBase *image);
95  };
96 
97  } // namespace cv
98 } // namespace icl
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
Internally used and returned result structure.
Definition: CheckerboardDetector.h:76
utils::Size size
used size (see init)
Definition: CheckerboardDetector.h:78
Utility class wrapping OpenCV's cvFindChessboardCorners.
Definition: CheckerboardDetector.h:46
#define ICLCV_API
Definition: CompatMacros.h:177
Data * m_data
internal data data
Definition: CheckerboardDetector.h:47
Size class of the ICL.
Definition: Size.h:61
Abstract class for visualization tasks.
Definition: VisualizationDescription.h:73
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
bool found
waes it found (i.e. all of the corners)
Definition: CheckerboardDetector.h:77
std::vector< utils::Point32f > corners
found corners
Definition: CheckerboardDetector.h:79
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131