Hugin trunk 0.1
Loading...
Searching...
No Matches
CachedImageRemapper.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
24#ifndef _HUGINAPP_CACHEDIMAGEREMAPPER_H
25#define _HUGINAPP_CACHEDIMAGEREMAPPER_H
26
27#include <hugin_shared.h>
28#include <nona/ImageRemapper.h>
29
30#include <map>
31#include <huginapp/ImageCache.h>
32
33namespace HuginBase {
34
40class IMPEX SmallRemappedImageCache : public Nona::SingleImageRemapper<vigra::FRGBImage, vigra::BImage>
41{
42
44
45
46public:
49
50
51public:
53 virtual MRemappedImage* getRemapped(const PanoramaData & pano,
54 const PanoramaOptions & opts,
55 unsigned int imgNr,
56 vigra::Rect2D outputROI,
58
59
60 virtual void release(MRemappedImage* d)
61 {
62 // NOP, will be done by invalidate..
63 }
64
66 void invalidate();
67
69 void invalidate(unsigned int imgNr);
70
71
72protected:
73 std::map<unsigned, MRemappedImage*> m_images;
74
75 // descriptions of the remapped image. useful to determine
76 // if it has to be updated or not
77 std::map<unsigned, SrcPanoImage> m_imagesParam;
78 std::map<unsigned, PanoramaOptions> m_panoOpts;
79
80};
81
82
83} //namespace
84#endif // _IMAGECACHE_H
struct to hold a image state for stitching
functor to create a remapped image
Model for a panorama.
Panorama image options.
class to cache remapped images, loaded from the hugin small image cache.
virtual void release(MRemappedImage *d)
Nona::RemappedPanoImage< vigra::FRGBImage, vigra::BImage > MRemappedImage
std::map< unsigned, PanoramaOptions > m_panoOpts
std::map< unsigned, SrcPanoImage > m_imagesParam
std::map< unsigned, MRemappedImage * > m_images
#define IMPEX
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
Definition wxcms.cpp:39
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.
Definition threshold.h:41