39 double & min,
double & max,
double &
mean,
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;
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();
109 const vigra::Size2D
img2_size = img2.getSize();
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);
150 std::sort(
radi.begin(),
radi.end());
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)
static void calcCtrlPntsRadiStats(const PanoramaData &pano, double &min, double &max, double &mean, double &var, double &q10, double &q90, const int &imgNr=-1)
virtual UIntSet getActiveImages() const =0
get active images
virtual const CPVector & getCtrlPoints() const =0
get all control point of this Panorama
virtual const SrcPanoImage & getImage(std::size_t nr) const =0
get a panorama image, counting starts with 0
All variables of a source image.
misc math function & classes used by other parts of the program
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::vector< ControlPoint > CPVector
std::set< unsigned int > UIntSet
bool set_contains(const _Container &c, const typename _Container::key_type &key)
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.