CalculateMeanExposure.cpp

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00026 #include "CalculateMeanExposure.h"
00027 
00028 #include <panodata/PanoramaData.h>
00029 
00030 
00031 namespace HuginBase {
00032 
00033 
00035 double CalculateMeanExposure::calcMeanExposure(const PanoramaData& pano)
00036 {
00037     double exposure=0;
00038     size_t i;
00039     for (i = 0; i < pano.getNrOfImages(); i++) {
00040         exposure += const_map_get(pano.getImageVariables(i),"Eev").getValue();
00041     }
00042     return exposure / i;
00043 }
00044 
00045 
00046 }

Generated on Sun Aug 31 01:25:38 2014 for Hugintrunk by  doxygen 1.3.9.1