|
Hugintrunk
0.1
|
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>
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 |
program to find vertical lines in project
Definition in file linefind.cpp.
| 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 102 of file linefind.cpp.
References vigra_ext::applyMapping(), vigra_ext::destImage(), vigra_ext::getMaxValForPixelType(), celeste::max(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().
Referenced by LoadGrayImageAndConvert().
| 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
| 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 UInt8 this is not fully correct
Definition at line 78 of file linefind.cpp.
References vigra_ext::applyMapping(), vigra_ext::destImage(), vigra_ext::getMaxValForPixelType(), celeste::max(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().
Referenced by LoadImageAndConvert().
| vigra::BImage LoadGrayImageAndConvert | ( | vigra::ImageImportInfo & | info, |
| vigra::BImage & | mask | ||
| ) |
Definition at line 126 of file linefind.cpp.
References convertGrayToUInt8(), vigra_ext::destImage(), and vigra::importImageAlpha().
| HuginBase::CPVector LoadGrayImageAndFindLines | ( | vigra::ImageImportInfo | info, |
| HuginBase::Panorama & | pano, | ||
| size_t | imgNr, | ||
| int | nrLines | ||
| ) |
Definition at line 164 of file linefind.cpp.
References vigra_ext::destImage(), HuginLines::GetVerticalLines(), vigra::importImageAlpha(), and celeste::info().
Referenced by main().
| vigra::UInt8RGBImage LoadImageAndConvert | ( | vigra::ImageImportInfo & | info, |
| vigra::BImage & | mask | ||
| ) |
Definition at line 145 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 | ||
| ) |
Definition at line 216 of file linefind.cpp.
References vigra_ext::destImage(), HuginLines::GetVerticalLines(), vigra::importImageAlpha(), and celeste::info().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 280 of file linefind.cpp.
References HuginBase::Panorama::addCtrlPoint(), HuginBase::Panorama::duplicate(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getNrOfImages(), hugin_utils::GetOutputFilename(), HuginBase::ConstImageVariableGroup::getPartsSet(), hugin_utils::getPathPrefix(), HuginBase::ConstStandardImageVariableGroups::getStacks(), HuginBase::Panorama::getVariables(), celeste::info(), LoadGrayImageAndFindLines(), LoadImageAndFindLines(), map_get(), ptinfoDlg(), ptProgress(), HuginBase::Panorama::ReadPTOFile(), HuginBase::PanoramaAlgorithm::run(), hugin_utils::stripPath(), celeste::swap(), HuginBase::Panorama::updateVariables(), usage(), and HuginBase::Panorama::WritePTOFile().
|
static |
Definition at line 65 of file linefind.cpp.
Referenced by main().
|
static |
Definition at line 61 of file linefind.cpp.
Referenced by main().
|
static |
Definition at line 45 of file linefind.cpp.
References hugin_utils::GetHuginVersion().
|
static |
Definition at line 278 of file linefind.cpp.
1.8.5