FindLines.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00008 /***************************************************************************
00009  *   Copyright (C) 2009 by Tim Nugent                                      *
00010  *   timnugent@gmail.com                                                   *
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  *   This program is distributed in the hope that it will be useful,       *
00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00020  *   GNU General Public License for more details.                          *
00021  *                                                                         *
00022  *   You should have received a copy of the GNU General Public License     *
00023  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
00024  ***************************************************************************/
00025 
00026 #ifndef FINDLINES_H
00027 #define FINDLINES_H
00028 
00029 #include <hugin_shared.h>
00030 #include "LinesTypes.h"
00031 #include "vigra/stdimage.hxx"
00032 #include "panodata/Panorama.h"
00033 
00034 namespace HuginLines
00035 {
00044     LINESIMPEX vigra::BImage* detectEdges(const vigra::UInt8RGBImage& input, const double scale, const double threshold, const unsigned int resize_dimension, double& size_factor);
00045     LINESIMPEX vigra::BImage* detectEdges(const vigra::BImage& input, const double scale, const double threshold, const unsigned int resize_dimension, double& size_factor);
00056     LINESIMPEX HuginLines::Lines findLines(vigra::BImage& edge, double length_threshold, double focal_length,double crop_factor);
00061     LINESIMPEX void ScaleLines(HuginLines::Lines& lines,const double scale);
00069     LINESIMPEX HuginBase::CPVector GetControlPoints(const SingleLine& line,const unsigned int imgNr, const unsigned int lineNr,const unsigned int numberOfCtrlPoints);
00077     LINESIMPEX HuginBase::CPVector GetVerticalLines(const HuginBase::Panorama& pano,const unsigned int imgNr,vigra::UInt8RGBImage& image,const unsigned int nrLines);
00078     LINESIMPEX HuginBase::CPVector GetVerticalLines(const HuginBase::Panorama& pano,const unsigned int imgNr,vigra::BImage& image,const unsigned int nrLines);
00079 };
00080 #endif

Generated on 2 Sep 2015 for Hugintrunk by  doxygen 1.4.7