Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
linefind.cpp File Reference

program to find vertical lines in project More...

#include <fstream>
#include <sstream>
#include <getopt.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 <algorithms/optimizer/PTOptimizer.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 More...
 
template<class SrcIMG >
void convertGrayToUInt8 (SrcIMG &src, const std::string &origType, vigra::BImage &dest)
 
template<class SrcIMG >
vigra::BImage LoadGrayImageAndConvert (vigra::ImageImportInfo &info, vigra::BImage &mask)
 
template<class SrcIMG >
vigra::UInt8RGBImage LoadImageAndConvert (vigra::ImageImportInfo &info, vigra::BImage &mask)
 
HuginBase::CPVector LoadGrayImageAndFindLines (vigra::ImageImportInfo info, HuginBase::Panorama &pano, size_t imgNr, int nrLines)
 
HuginBase::CPVector LoadImageAndFindLines (vigra::ImageImportInfo info, HuginBase::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 
)

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

Definition at line 104 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
srcinput image
origTypepixel type of input image
destconverted image

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

Definition at line 78 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,
vigra::BImage &  mask 
)
HuginBase::CPVector LoadGrayImageAndFindLines ( vigra::ImageImportInfo  info,
HuginBase::Panorama pano,
size_t  imgNr,
int  nrLines 
)
template<class SrcIMG >
vigra::UInt8RGBImage LoadImageAndConvert ( vigra::ImageImportInfo &  info,
vigra::BImage &  mask 
)

Definition at line 147 of file linefind.cpp.

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

HuginBase::CPVector LoadImageAndFindLines ( vigra::ImageImportInfo  info,
HuginBase::Panorama pano,
size_t  imgNr,
int  nrLines 
)
int main ( int  argc,
char *  argv[] 
)
static int ptinfoDlg ( int  command,
char *  argument 
)
static

Definition at line 65 of file linefind.cpp.

Referenced by main().

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

Definition at line 61 of file linefind.cpp.

Referenced by main().

static void usage ( const char *  name)
static

Definition at line 45 of file linefind.cpp.

References hugin_utils::GetHuginVersion().

Variable Documentation

hugin_omp::Lock lock
static

Definition at line 280 of file linefind.cpp.