linefind.cpp File Reference

program to find vertical lines in project More...

#include <fstream>
#include <sstream>
#include <getopt.h>
#include <unistd.h>
#include <panodata/Panorama.h>
#include <panodata/StandardImageVariableGroups.h>
#include <lines/FindLines.h>
#include <vigra/impex.hxx>
#include <vigra_ext/impexalpha.hxx>
#include <vigra/functorexpression.hxx>
#include <vigra_ext/utils.h>
#include <hugin_utils/openmp_lock.h>
#include <pano13/filter.h>

Include dependency graph for linefind.cpp:

Go to the source code of this file.

Classes

struct  SortVectorByExposure

Functions

static void usage (const char *name)
static int ptProgress (int command, char *argument)
static int ptinfoDlg (int command, char *argument)
template<class SrcIMG>
void convertToUInt8 (SrcIMG &src, const std::string &origType, vigra::UInt8RGBImage &dest)
 converts the given image to UInt8RGBImage only this image is correctly processed by linefind
template<class SrcIMG>
void convertGrayToUInt8 (SrcIMG &src, const std::string &origType, vigra::BImage &dest)
template<class SrcIMG>
vigra::BImage LoadGrayImageAndConvert (vigra::ImageImportInfo &info)
template<class SrcIMG>
vigra::UInt8RGBImage LoadImageAndConvert (vigra::ImageImportInfo &info)
HuginBase::CPVector LoadGrayImageAndFindLines (vigra::ImageImportInfo info, Panorama &pano, size_t imgNr, int nrLines)
HuginBase::CPVector LoadImageAndFindLines (vigra::ImageImportInfo info, Panorama &pano, size_t imgNr, int nrLines)
int main (int argc, char *argv[])

Variables

static hugin_omp::Lock lock


Detailed Description

program to find vertical lines in project

Author:
T. Modes

Definition in file linefind.cpp.


Function Documentation

template<class SrcIMG>
void convertGrayToUInt8 ( SrcIMG &  src,
const std::string origType,
vigra::BImage &  dest 
)

Definition at line 109 of file linefind.cpp.

References vigra_ext::applyMapping(), vigra_ext::destImage(), vigra_ext::getMaxValForPixelType(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().

Referenced by LoadGrayImageAndConvert().

template<class SrcIMG>
void convertToUInt8 ( SrcIMG &  src,
const std::string origType,
vigra::UInt8RGBImage &  dest 
)

converts the given image to UInt8RGBImage only this image is correctly processed by linefind

Parameters:
src input image
origType pixel type of input image
dest converted image

this convert routine scale the input values range into the full scale of UInt16 this is not fully correct

Definition at line 83 of file linefind.cpp.

References vigra_ext::applyMapping(), vigra_ext::destImage(), vigra_ext::getMaxValForPixelType(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().

Referenced by LoadImageAndConvert().

template<class SrcIMG>
vigra::BImage LoadGrayImageAndConvert ( vigra::ImageImportInfo &  info  ) 

Definition at line 133 of file linefind.cpp.

References convertGrayToUInt8(), vigra_ext::destImage(), and vigra::importImageAlpha().

HuginBase::CPVector LoadGrayImageAndFindLines ( vigra::ImageImportInfo  info,
Panorama pano,
size_t  imgNr,
int  nrLines 
)

Definition at line 173 of file linefind.cpp.

References cerr, vigra_ext::destImage(), HuginLines::GetVerticalLines(), and vigra::importImageAlpha().

Referenced by main().

template<class SrcIMG>
vigra::UInt8RGBImage LoadImageAndConvert ( vigra::ImageImportInfo &  info  ) 

Definition at line 153 of file linefind.cpp.

References convertToUInt8(), vigra_ext::destImage(), and vigra::importImageAlpha().

HuginBase::CPVector LoadImageAndFindLines ( vigra::ImageImportInfo  info,
Panorama pano,
size_t  imgNr,
int  nrLines 
)

Definition at line 225 of file linefind.cpp.

References cerr, vigra_ext::destImage(), HuginLines::GetVerticalLines(), and vigra::importImageAlpha().

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 289 of file linefind.cpp.

References HuginBase::Panorama::addCtrlPoint(), HuginBase::append(), cerr, cout, fill_set(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), celeste::info(), LoadGrayImageAndFindLines(), LoadImageAndFindLines(), lock, HuginBase::Panorama::printPanoramaScript(), ptinfoDlg(), ptProgress(), HuginBase::Panorama::readData(), HuginBase::Panorama::setFilePrefix(), hugin_utils::stripPath(), and usage().

static int ptinfoDlg ( int  command,
char *  argument 
) [static]

Definition at line 70 of file linefind.cpp.

static int ptProgress ( int  command,
char *  argument 
) [static]

Definition at line 66 of file linefind.cpp.

static void usage ( const char *  name  )  [static]

Definition at line 50 of file linefind.cpp.

References cout, and hugin_utils::GetHuginVersion().


Variable Documentation

hugin_omp::Lock lock [static]

Definition at line 287 of file linefind.cpp.


Generated on 28 Jul 2015 for Hugintrunk by  doxygen 1.4.7