Hugin trunk 0.1
Loading...
Searching...
No Matches
CalculateMeanExposure.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
26#ifndef _BASICALGORITHMS_CALCULATEMEANEXPOSURE_H
27#define _BASICALGORITHMS_CALCULATEMEANEXPOSURE_H
28
29#include <hugin_shared.h>
31
32
33
34namespace HuginBase {
35
36
38{
39
40 public:
43 : PanoramaAlgorithm(panorama), o_resultExposure(0.0)
44 {};
45
48
49
50 public:
52 virtual bool modifiesPanoramaData() const
53 { return false; }
54
56 virtual bool runAlgorithm()
57 {
58 o_resultExposure = calcMeanExposure(o_panorama);
59 return true; // let's hope so.
60 }
61
62
63 public:
64
66 static double calcMeanExposure(const PanoramaData& pano);
67
69 virtual double getResultExposure() const
70 {
71 // [TODO] if(!hasRunSuccessfully()) DEBUG;
72 return o_resultExposure;
73 }
74
75
76 protected:
78};
79
80
81}
82#endif // _H
virtual bool runAlgorithm()
implementation of the algorithm.
virtual bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
CalculateMeanExposure(PanoramaData &panorama)
Model for a panorama.
#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