39 double &
min,
double &
max,
double & mean,
42 const bool onlyActive,
43 const bool ignoreLineCp)
53 CPVector::const_iterator it;
54 for (it = cps.begin() ; it != cps.end(); ++it) {
55 if (imgNr >= 0 && ((
int)(*it).image1Nr != imgNr && (
int)(*it).image2Nr != imgNr))
68 double x = (*it).error;
69 double delta = x - mean;
71 var += delta*(x - mean);
85 double &
min,
double &
max,
double & mean,
double & var,
86 double & q10,
double & q90,
96 CPVector::const_iterator it;
98 std::vector<double> radi;
99 for (it = cps.begin() ; it != cps.end(); ++it) {
100 if (imgNr >= 0 && ((
int)(*it).image1Nr != imgNr && (
int)(*it).image2Nr != imgNr))
106 const vigra::Size2D img1_size = img1.getSize();
107 int w1 = img1_size.width();
108 int h1 = img1_size.height();
109 const vigra::Size2D img2_size = img2.getSize();
110 int w2 = img2_size.width();
111 int h2 = img2_size.height();
114 double x1 = ((*it).x1-(w1/2.0)) / (h1/2.0);
115 double y1 = ((*it).y1-(h1/2.0)) / (h1/2.0);
116 double x2 = ((*it).x2-(w2/2.0)) / (h2/2.0);
117 double y2 = ((*it).y2-(h2/2.0)) / (h2/2.0);
119 double r1 = sqrt(x1*x1 + y1*y1);
121 double r2 = sqrt(x2*x2 + y2*y2);
126 double delta = x - mean;
128 var += delta*(x - mean);
140 var += delta*(x - mean);
150 std::sort(radi.begin(), radi.end());
misc math function & classes used by other parts of the program
static void calcCtrlPntsErrorStats(const PanoramaData &pano, double &min, double &max, double &mean, double &var, const int &imgNr=-1, const bool onlyActive=false, const bool ignoreLineCp=false)
bool set_contains(const _Container &c, const typename _Container::key_type &key)
static void calcCtrlPntsRadiStats(const PanoramaData &pano, double &min, double &max, double &mean, double &var, double &q10, double &q90, const int &imgNr=-1)
std::set< unsigned int > UIntSet
virtual UIntSet getActiveImages() const =0
get active images
virtual const SrcPanoImage & getImage(std::size_t nr) const =0
get a panorama image, counting starts with 0
virtual const CPVector & getCtrlPoints() const =0
get all control point of this Panorama
std::vector< ControlPoint > CPVector
All variables of a source image.