HuginBase::SmallRemappedImageCache Class Reference

class to cache remapped images, loaded from the hugin small image cache. More...

#include <CachedImageRemapper.h>

Inheritance diagram for HuginBase::SmallRemappedImageCache:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~SmallRemappedImageCache ()
virtual MRemappedImagegetRemapped (const PanoramaData &pano, const PanoramaOptions &opts, unsigned int imgNr, vigra::Rect2D outputROI, AppBase::MultiProgressDisplay &progress)
 create a remapped pano image.
virtual void release (MRemappedImage *d)
void invalidate ()
 invalidates all images
void invalidate (unsigned int imgNr)
 invalidate a specific image

Protected Attributes

std::map< unsigned, MRemappedImage * > m_images
std::map< unsigned, SrcPanoImagem_imagesParam
std::map< unsigned, PanoramaOptionsm_panoOpts

Private Types

typedef Nona::RemappedPanoImage<
vigra::FRGBImage, vigra::BImage > 
MRemappedImage

Detailed Description

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 46 of file CachedImageRemapper.h.


Member Typedef Documentation

typedef Nona::RemappedPanoImage<vigra::FRGBImage, vigra::BImage> HuginBase::SmallRemappedImageCache::MRemappedImage [private]
 

Definition at line 49 of file CachedImageRemapper.h.

Referenced by getRemapped(), and release().


Constructor & Destructor Documentation

HuginBase::SmallRemappedImageCache::~SmallRemappedImageCache  )  [virtual]
 

Definition at line 39 of file CachedImageRemapper.cpp.

References invalidate().


Member Function Documentation

SmallRemappedImageCache::MRemappedImage * HuginBase::SmallRemappedImageCache::getRemapped const PanoramaData pano,
const PanoramaOptions popts,
unsigned int  imgNr,
vigra::Rect2D  outputROI,
AppBase::MultiProgressDisplay progress
[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 45 of file CachedImageRemapper.cpp.

References DEBUG_DEBUG, vigra_ext::destImage(), HuginBase::estimateOutputROI(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::PanoramaData::getImage(), HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getProjectionParameters(), HuginBase::PanoramaData::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), m_images, m_imagesParam, m_panoOpts, MRemappedImage, HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputMode, AppBase::MultiProgressDisplay::popTask(), AppBase::MultiProgressDisplay::pushTask(), HuginBase::Nona::remapImage(), HuginBase::SrcPanoImage::resize(), set_contains(), vigra_ext::srcImageRange(), and vigra_ext::srcMask().

void HuginBase::SmallRemappedImageCache::invalidate unsigned int  imgNr  ) 
 

invalidate a specific image

Definition at line 187 of file CachedImageRemapper.cpp.

References DEBUG_DEBUG, m_images, m_imagesParam, and set_contains().

void HuginBase::SmallRemappedImageCache::invalidate  ) 
 

invalidates all images

Definition at line 174 of file CachedImageRemapper.cpp.

References DEBUG_DEBUG, m_images, and m_imagesParam.

Referenced by ~SmallRemappedImageCache().

virtual void HuginBase::SmallRemappedImageCache::release MRemappedImage d  )  [inline, virtual]
 

Definition at line 66 of file CachedImageRemapper.h.

References MRemappedImage.


Member Data Documentation

std::map<unsigned, MRemappedImage*> HuginBase::SmallRemappedImageCache::m_images [protected]
 

Definition at line 79 of file CachedImageRemapper.h.

Referenced by getRemapped(), and invalidate().

std::map<unsigned, SrcPanoImage> HuginBase::SmallRemappedImageCache::m_imagesParam [protected]
 

Definition at line 83 of file CachedImageRemapper.h.

Referenced by getRemapped(), and invalidate().

std::map<unsigned, PanoramaOptions> HuginBase::SmallRemappedImageCache::m_panoOpts [protected]
 

Definition at line 84 of file CachedImageRemapper.h.

Referenced by getRemapped().


The documentation for this class was generated from the following files:
Generated on Sat Jul 26 01:25:53 2014 for Hugintrunk by  doxygen 1.3.9.1