src/photobundle.cc
DescriptorError(const Calibration& calib, const std::vector<double>& p0,
                  const DescriptorFrame* frame, const std::vector<double>& w)
      : _radius(PatchRadiusFromLength(p0.size() / frame->numChannels())),
      _calib(calib), _p0(p0.data()), _frame(frame), _patch_weights(w.data())
  {
    // TODO should just pass the config to get the radius value
    assert( p0.size() == w.size() );
  }
/**
   * \param radius  the patch radius
   * \param calib   the camera calibration
   * \param p0      the reference frame descriptor must have size (2*radius+1)^2
   * \param frame   descriptor data of the image we are matching against
   */
\param radius  the patch radius
\param calib   the camera calibration
\param p0      the reference frame descriptor must have size (2*radius+1)^2
\param frame   descriptor data of the image we are matching against
\ param radius the patch radius \ param calib the camera calibration \ param p0 the reference frame descriptor must have size ( 2 * radius + 1 ) ^2 \ param frame descriptor data of the image we are matching against
DescriptorError(const Calibration& calib, const std::vector<double>& p0,
                  const DescriptorFrame* frame, const std::vector<double>& w)
      : _radius(PatchRadiusFromLength(p0.size() / frame->numChannels())),
      _calib(calib), _p0(p0.data()), _frame(frame), _patch_weights(w.data())
  {
    assert( p0.size() == w.size() );
  }
DescriptorError ( const Calibration & calib , const std :: vector < double > & p0 , const DescriptorFrame * frame , const std :: vector < double > & w ) : _radius ( PatchRadiusFromLength ( p0 . size ( ) / frame -> numChannels ( ) ) ) , _calib ( calib ) , _p0 ( p0 . data ( ) ) , _frame ( frame ) , _patch_weights ( w . data ( ) ) { assert ( p0 . size ( ) == w . size ( ) ) ; }
\param radius  the patch radius
 \param calib   the camera calibration
 \param p0      the reference frame descriptor must have size (2*radius+1)^2
 \param frame   descriptor data of the image we are matching against
\ param radius the patch radius \ param calib the camera calibration \ param p0 the reference frame descriptor must have size ( 2 * radius + 1 ) ^2 \ param frame descriptor data of the image we are matching against
// TODO should just pass the config to get the radius value