Hugin trunk 0.1
Loading...
Searching...
No Matches
Functions
GenerateThumbnail.cpp File Reference
#include "GenerateThumbnail.h"
#include "algorithms/nona/NonaFileStitcher.h"
#include "hugin_base/nona/ImageRemapper.h"
#include "hugin_base/nona/Stitcher.h"
Include dependency graph for GenerateThumbnail.cpp:

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
 

Function Documentation

◆ GenerateThumbnail()

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

Parameters
[in]pto_filenamefilename of pto file for which the thumbnail should be generated
[in]sizemaximal width and height of generated thumbnail
[out]panoImagevigra::BRGBImage holding the preview image data
[out]panoMaskalpha channel of the preview image
[out]iccProfileiccProfile for the given panorama read from the input files

Definition at line 33 of file GenerateThumbnail.cpp.

References hugin_utils::FileExists(), HuginBase::Panorama::getActiveImages(), HuginBase::PanoramaOptions::getHeight(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), HuginBase::PanoramaOptions::getROI(), HuginBase::Panorama::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), HuginBase::PanoramaOptions::OUTPUT_LDR, HuginBase::PanoramaOptions::outputEMoRParams, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputImageType, HuginBase::PanoramaOptions::outputMode, HuginBase::PanoramaOptions::PNG, HuginBase::Panorama::ReadPTOFile(), HuginBase::PanoramaOptions::remapUsingGPU, HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, HuginBase::Nona::SetAdvancedOption(), HuginBase::Nona::SingleImageRemapper< ImageType, AlphaType >::setAdvancedOptions(), HuginBase::PanoramaOptions::setROI(), HuginBase::PanoramaOptions::setWidth(), threshold(), and HuginBase::PanoramaOptions::tiff_saveROI.

Referenced by ThumbnailThread::Entry(), and BrowsePTOFilesDialog::GeneratePreview().