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:

Include dependency graph

Go to the source code of this file.

Functions

void usage (const char *name)
int ptProgress (int command, char *argument)
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
 

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

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 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 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(), cerr, cout, fill_set(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), makefile::ifstream, celeste::info(), LoadGrayImageAndFindLines(), LoadImageAndFindLines(), makefile::ofstream, HuginBase::Panorama::printPanoramaScript(), ptinfoDlg(), ptProgress(), HuginBase::Panorama::readData(), HuginBase::Panorama::setFilePrefix(), makefile::string, HuginBase::UIntSet, and usage().

int ptinfoDlg int  command,
char *  argument
[static]
 

Definition at line 75 of file linefind.cpp.

Referenced by main().

int ptProgress int  command,
char *  argument
[static]
 

Definition at line 71 of file linefind.cpp.

Referenced by main().

void usage const char *  name  )  [static]
 

Definition at line 55 of file linefind.cpp.

References cout.


Generated on Tue Sep 23 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1