Image Component Library (ICL)
ImageRectification.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 : ICLFilter/src/ICLFilter/ImageRectification.h **
10 ** Module : ICLFilter **
11 ** Authors: Christof Elbrechter, Sergius Gaulik **
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 <ICLUtils/SSEUtils.h>
35 #include <ICLCore/Img.h>
36 #include <ICLMath/FixedMatrix.h>
37 
38 namespace icl{
39  namespace filter{
40 
42 
50  template<class T>
54 
55  public:
56 
58  ImageRectification(bool validateAndSortPoints=true):validateAndSortPoints(validateAndSortPoints){}
59 
61  const core::Img<T> &apply(const math::FixedMatrix<float,3,3> &transform, const core::Img<T> &src, const utils::Size &resultSize);
64 
83  const core::Img<T> &apply(const utils::Point32f ps[4], const core::Img<T> &src,
84  const utils::Size &resultSize,math::FixedMatrix<float,3,3> *hom=0,
86  float maxTilt=0, bool advanedAlgorithm=true,
87  const utils::Rect *resultROI=0, const core::scalemode eScaleMode=core::interpolateLIN);
88 
89 
90  // TODO: use result roi in order to speed up
91  };
92 
93  } // namespace markers
94 }
95 
ImageRectification(bool validateAndSortPoints=true)
create an ImageRectification instance with given value for validateAndSortPoints
Definition: ImageRectification.h:58
undocument this line if you encounter any issues!
Definition: Any.h:37
core::Img< T > buffer
internal image buffer
Definition: ImageRectification.h:52
bool validateAndSortPoints
internal flag
Definition: ImageRectification.h:53
Size class of the ICL.
Definition: Size.h:61
ICLQt_API core::Img< T > filter(const core::Img< T > &image, const std::string &filter)
applies a filter operation on the source image (affinity for float)
scalemode
for scaling of Img images theses functions are provided
Definition: Types.h:84
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
#define ICLFilter_API
Definition: CompatMacros.h:175
Rectangle class of the ICL used e.g. for the Images ROI-rect.
Definition: Rect.h:95
Definition: Types.h:86
The ImageRectification class can be use to rectify an image quadrangle (IPP accellerated)
Definition: ImageRectification.h:51