Hugintrunk
0.1
|
class to cache remapped images, loaded from the hugin small image cache. More...
#include <CachedImageRemapper.h>
Public Member Functions | |
virtual | ~SmallRemappedImageCache () |
virtual MRemappedImage * | getRemapped (const PanoramaData &pano, const PanoramaOptions &opts, unsigned int imgNr, vigra::Rect2D outputROI, AppBase::ProgressDisplay *progress) |
create a remapped pano image. More... | |
virtual void | release (MRemappedImage *d) |
void | invalidate () |
invalidates all images More... | |
void | invalidate (unsigned int imgNr) |
invalidate a specific image More... | |
Public Member Functions inherited from HuginBase::Nona::SingleImageRemapper< vigra::FRGBImage, vigra::BImage > | |
SingleImageRemapper () | |
virtual | ~SingleImageRemapper () |
void | setAdvancedOptions (const HuginBase::Nona::AdvancedOptions advancedOptions) |
virtual void | release (RemappedPanoImage< vigra::FRGBImage, vigra::BImage > *d)=0 |
Protected Attributes | |
std::map< unsigned, MRemappedImage * > | m_images |
std::map< unsigned, SrcPanoImage > | m_imagesParam |
std::map< unsigned, PanoramaOptions > | m_panoOpts |
Protected Attributes inherited from HuginBase::Nona::SingleImageRemapper< vigra::FRGBImage, vigra::BImage > | |
HuginBase::Nona::AdvancedOptions | m_advancedOptions |
Private Types | |
typedef Nona::RemappedPanoImage < vigra::FRGBImage, vigra::BImage > | MRemappedImage |
class to cache remapped images, loaded from the hugin small image cache.
This is meant to be used by the preview stitcher.
Definition at line 40 of file CachedImageRemapper.h.
|
private |
Definition at line 43 of file CachedImageRemapper.h.
|
virtual |
Definition at line 36 of file CachedImageRemapper.cpp.
References invalidate().
|
virtual |
create a remapped pano image.
The image ownership is transferred to the caller.
Implements HuginBase::Nona::SingleImageRemapper< vigra::FRGBImage, vigra::BImage >.
Definition at line 42 of file CachedImageRemapper.cpp.
References vigra::omp::copyImage(), DEBUG_DEBUG, vigra_ext::destImage(), HuginBase::estimateOutputROI(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::PanoramaData::getImage(), HuginBase::ImageCache::getInstance(), HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getProjectionParameters(), HuginBase::ImageCache::getSmallImage(), HuginBase::PanoramaData::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::m_ICCProfile, m_images, m_imagesParam, m_panoOpts, HuginBase::PanoramaOptions::OUTPUT_HDR, HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputMode, HuginBase::Nona::remapImage(), HuginBase::SrcPanoImage::resize(), set_contains(), AppBase::ProgressDisplay::setMessage(), HuginBase::ImageCache::softFlush(), vigra_ext::srcImageRange(), vigra_ext::srcMask(), and HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD.
void HuginBase::SmallRemappedImageCache::invalidate | ( | ) |
invalidates all images
Definition at line 167 of file CachedImageRemapper.cpp.
References DEBUG_DEBUG, m_images, and m_imagesParam.
Referenced by PreviewPanel::OnResize(), PreviewPanel::panoramaChanged(), and ~SmallRemappedImageCache().
void HuginBase::SmallRemappedImageCache::invalidate | ( | unsigned int | imgNr | ) |
invalidate a specific image
Definition at line 180 of file CachedImageRemapper.cpp.
References DEBUG_DEBUG, m_images, m_imagesParam, and set_contains().
|
inlinevirtual |
Definition at line 60 of file CachedImageRemapper.h.
|
protected |
Definition at line 73 of file CachedImageRemapper.h.
Referenced by getRemapped(), and invalidate().
|
protected |
Definition at line 77 of file CachedImageRemapper.h.
Referenced by getRemapped(), and invalidate().
|
protected |
Definition at line 78 of file CachedImageRemapper.h.
Referenced by getRemapped().