57 const double scale = std::max(
roi.width() * 1.0 / size.GetWidth(),
roi.height() * 1.0 / size.GetHeight());
61 newROI.addSize(vigra::Size2D(std::min(size.GetWidth() -
newROI.width(), 0), std::min(size.GetHeight() -
newROI.height(), 0)));
97 vigra::copyImage(vigra::srcImageRange(preview,
stitcher.GetPanoROI()), vigra::destImage(
panoImage));
99 iccProfile =
stitcher.GetICCProfile();
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
generate thumbnail from given pto file
Contains various routines used for stitching panoramas.
Dummy progress display, without output.
@ RESPONSE_EMOR
empirical model of response
functor to create a remapped image, loads image from disk
void setAdvancedOptions(const HuginBase::Nona::AdvancedOptions advancedOptions)
const vigra::Rect2D & getROI() const
void setWidth(unsigned int w, bool keepView=true)
set panorama width keep the HFOV, if keepView=true
std::vector< float > outputEMoRParams
void setROI(const vigra::Rect2D &val)
unsigned int getWidth() const
std::string outputImageType
unsigned int getHeight() const
get panorama height
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
const PanoramaOptions & getOptions() const
returns the options for this panorama
bool ReadPTOFile(const std::string &filename, const std::string &prefix="")
read pto file from the given filename into Panorama object it does some checks on the file and issues...
SrcPanoImage getSrcImage(unsigned imgNr) const
get a description of a source image
UIntSet getActiveImages() const
get active images
std::size_t getNrOfImages() const
number of images.
std::map< std::string, std::string > AdvancedOptions
void SetAdvancedOption(AdvancedOptions &opts, const std::string &name, const bool value)
store the option with name in AdvancedOptions
bool FileExists(const std::string &filename)
checks if file exists
std::string getPathPrefix(const std::string &filename)
Get the path to a filename.
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.