linefind.cpp File Reference

program to find vertical lines in project More...

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

Include dependency graph for linefind.cpp:

Go to the source code of this file.

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[])


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 114 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 88 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 138 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 178 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 158 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 230 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 281 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(), HuginBase::Panorama::printPanoramaScript(), ptinfoDlg(), ptProgress(), HuginBase::Panorama::readData(), HuginBase::Panorama::setFilePrefix(), and usage().

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

Definition at line 75 of file linefind.cpp.

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

Definition at line 71 of file linefind.cpp.

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

Definition at line 55 of file linefind.cpp.

References cout.


Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7