Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TFTensorEstimation.hh
1 /*
2 This file is part of the BIAS library (Basic ImageAlgorithmS).
3 
4 Copyright (C) 2003-2009 (see file CONTACT for details)
5  Multimediale Systeme der Informationsverarbeitung
6  Institut fuer Informatik
7  Christian-Albrechts-Universitaet Kiel
8 
9 
10 BIAS is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14 
15 BIAS is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Lesser General Public License for more details.
19 
20 You should have received a copy of the GNU Lesser General Public License
21 along with BIAS; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 
25 
26 #ifndef __TFTensorEstimation_hh__
27 #define __TFTensorEstimation_hh__
28 
29 #include <Base/Common/BIASpragmaStart.hh>
30 
31 #include "TrifocalTensor.hh"
32 #include <Base/Geometry/HomgPoint2D.hh>
33 #include <Base/Geometry/Normalization.hh>
34 
35 #include <vector>
36 
37 namespace BIAS
38 {
39  /** class TFTensorEstimation
40  @brief compute a trifocal tensor from image correspondences, not robust
41  against outliers
42  @author Matthias Dunda
43  @ingroup g_estimation */
44  class BIASGeometry_EXPORT TFTensorEstimation
45  {
46  public:
49 
50  /** @brief Estimate a trifocal tensor given correnspondences
51  over three images.
52  @param HartleyNormalization normalizes correspondences for
53  each view according to Hartley
54  @return !=0 on error
55  @author Matthias Dunda 01/2004 */
56  int Compute( BIAS::TrifocalTensor &T,
57  const std::vector<BIAS::HomgPoint2D> &x1,
58  const std::vector<BIAS::HomgPoint2D> &x2,
59  const std::vector<BIAS::HomgPoint2D> &x3,
60  bool HartleyNormalization = true );
61  protected:
63  int AlgebraicMinimization(BIAS::TrifocalTensor &Initial,
64  BIAS::TrifocalTensor &Result);
65 
66  }; // class
67 
68 } // namespace
69 
70 #include <Base/Common/BIASpragmaEnd.hh>
71 
72 #endif /* __TFTensorEstimation_hh__ */
73 
class TFTensorEstimation
class Normalization Functions, e.g.
BIAS::Normalization Norm_