Hugintrunk
0.1
|
generate thumbnail from given pto file More...
#include <string>
#include <panodata/Panorama.h>
#include <vigra/stdimage.hxx>
#include "wx/gdicmn.h"
Go to the source code of this file.
Functions | |
bool | GenerateThumbnail (const std::string pto_filename, const wxSize size, vigra::BRGBImage &panoImage, vigra::BImage &panoMask, vigra::ImageImportInfo::ICCProfile &iccProfile) |
generate thumbnail image for given pto_filename More... | |
generate thumbnail from given pto file
Definition in file GenerateThumbnail.h.
bool GenerateThumbnail | ( | const std::string | pto_filename, |
const wxSize | size, | ||
vigra::BRGBImage & | panoImage, | ||
vigra::BImage & | panoMask, | ||
vigra::ImageImportInfo::ICCProfile & | iccProfile | ||
) |
generate thumbnail image for given pto_filename
[in] | pto_filename | filename of pto file for which the thumbnail should be generated |
[in] | size | maximal width and height of generated thumbnail |
[out] | panoImage | vigra::BRGBImage holding the preview image data |
[out] | panoMask | alpha channel of the preview image |
[out] | iccProfile | iccProfile for the given panorama read from the input files |
Definition at line 33 of file GenerateThumbnail.cpp.
References vigra::omp::copyImage(), vigra_ext::destImage(), hugin_utils::FileExists(), HuginBase::Panorama::getActiveImages(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::GetICCProfile(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::GetPanoROI(), hugin_utils::getPathPrefix(), HuginBase::Panorama::getSrcImage(), HuginBase::Nona::Stitcher< ImageType, AlphaType >::init(), celeste::max(), celeste::min(), HuginBase::PanoramaOptions::OUTPUT_LDR, HuginBase::PanoramaOptions::PNG, HuginBase::Panorama::ReadPTOFile(), HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, HuginBase::Nona::SetAdvancedOption(), HuginBase::Nona::SingleImageRemapper< ImageType, AlphaType >::setAdvancedOptions(), vigra_ext::srcImageRange(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().
Referenced by ThumbnailThread::Entry(), and BrowsePTOFilesDialog::GeneratePreview().