VigQuotientEstimator.h File Reference

#include <hugin_math/hugin_math.h>
#include "RansacParameterEstimator.h"
#include <iostream>
#include <boost/random.hpp>
#include <vigra/rgbvalue.hxx>
#include <vigra/stdimage.hxx>
#include <vigra_ext/ROIImage.h>
#include <vigra_ext/utils.h>
#include "ransac.h"
#include <hugin_math/lu.h>

Include dependency graph for VigQuotientEstimator.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


namespace  vigra_ext


struct  vigra_ext::VigQuotientEstimateResult
class  vigra_ext::VigQuotientEstimator
 This class estimates the parameters of the vignetting curve. More...


template<class PITER>
double calcVigCorrPoly (PITER p, double r)
 function to calculate the vignetting correction: 1 + p[0]*r^2 + p[1]*r^4 + p[2]*r^6
template<class ImageType, class CoordType>
void extractRandomPoints (std::vector< vigra_ext::ROIImage< ImageType, vigra::BImage > * > &remapped, std::vector< CoordType > &imgXCoord, std::vector< CoordType > &imgYCoord, const std::vector< vigra::Size2D > &imgSize, const std::vector< hugin_utils::FDiff2D > &imgCenter, unsigned nPointsPerOverlap, std::vector< PointPair > &points, unsigned &nBadPoints)
VigQuotientEstimateResult optimizeVignettingQuotient (const std::vector< PointPair > &points, double ransacDelta, std::vector< double > &vigCoeff)

Function Documentation

template<class PITER>
double calcVigCorrPoly PITER  p,
double  r

function to calculate the vignetting correction: 1 + p[0]*r^2 + p[1]*r^4 + p[2]*r^6

Definition at line 44 of file VigQuotientEstimator.h.

Referenced by vigra_ext::optimizeVignettingQuotient().

template<class ImageType, class CoordType>
void extractRandomPoints std::vector< vigra_ext::ROIImage< ImageType, vigra::BImage > * > &  remapped,
std::vector< CoordType > &  imgXCoord,
std::vector< CoordType > &  imgYCoord,
const std::vector< vigra::Size2D > &  imgSize,
const std::vector< hugin_utils::FDiff2D > &  imgCenter,
unsigned  nPointsPerOverlap,
std::vector< PointPair > &  points,
unsigned &  nBadPoints

Definition at line 307 of file VigQuotientEstimator.h.

References DEBUG_DEBUG, hugin_utils::FDiff2D, vigra_ext::PointPair, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

VigQuotientEstimateResult optimizeVignettingQuotient const std::vector< PointPair > &  points,
double  ransacDelta,
std::vector< double > &  vigCoeff

Definition at line 384 of file VigQuotientEstimator.h.

References vigra_ext::VigQuotientEstimateResult::brightnessRMSE, vigra_ext::calcVigCorrPoly(), Ransac::compute(), vigra_ext::VigQuotientEstimateResult::nUsedPoints, and hugin_utils::sqr().

Generated on Sat Sep 20 01:25:44 2014 for Hugintrunk by  doxygen