Line.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of ALVAR, A Library for Virtual and Augmented Reality.
00003  *
00004  * Copyright 2007-2012 VTT Technical Research Centre of Finland
00005  *
00006  * Contact: VTT Augmented Reality Team <alvar.info@vtt.fi>
00007  *          <http://www.vtt.fi/multimedia/alvar.html>
00008  *
00009  * ALVAR is free software; you can redistribute it and/or modify it under the
00010  * terms of the GNU Lesser General Public License as published by the Free
00011  * Software Foundation; either version 2.1 of the License, or (at your option)
00012  * any later version.
00013  *
00014  * This library is distributed in the hope that it will be useful, but WITHOUT
00015  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00016  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
00017  * for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public License
00020  * along with ALVAR; if not, see
00021  * <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>.
00022  */
00023 
00024 #ifndef _LINE_H
00025 #define _LINE_H
00026 
00033 #include "Alvar.h"
00034 #include "Util.h"
00035 
00036 namespace alvar {
00037 
00041 struct ALVAR_EXPORT Line
00042 {
00047         Line(float params[4]);
00048         Line()
00049         {}
00050 
00054         PointDouble c; // center
00058         PointDouble s; // direction vector
00059 };
00060 
00068 int ALVAR_EXPORT FitLines(std::vector<Line> &lines,
00069                          const std::vector<int>& corners,
00070                          const std::vector<PointInt >& edge,
00071                                         IplImage *grey=0); 
00072 
00079 PointDouble ALVAR_EXPORT Intersection(const Line& l1, const Line& l2);
00080 
00081 } // namespace alvar 
00082 
00083 #endif
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Sun Oct 5 2014 22:16:26