~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to extern/libmv/third_party/ceres/include/ceres/loss_function.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
#ifndef CERES_PUBLIC_LOSS_FUNCTION_H_
76
76
#define CERES_PUBLIC_LOSS_FUNCTION_H_
77
77
 
78
 
#include <glog/logging.h>
79
78
#include "ceres/internal/macros.h"
80
79
#include "ceres/internal/scoped_ptr.h"
81
80
#include "ceres/types.h"
 
81
#include "glog/logging.h"
82
82
 
83
83
namespace ceres {
84
84
 
347
347
//
348
348
//  CostFunction* cost_function =
349
349
//    new AutoDiffCostFunction < UW_Camera_Mapper, 2, 9, 3>(
350
 
//      new UW_Camera_Mapper(data->observations[2*i + 0],
351
 
//                           data->observations[2*i + 1]));
 
350
//      new UW_Camera_Mapper(feature_x, feature_y));
352
351
//
353
352
//  LossFunctionWrapper* loss_function(new HuberLoss(1.0), TAKE_OWNERSHIP);
354
353
//
355
354
//  problem.AddResidualBlock(cost_function, loss_function, parameters);
356
355
//
357
356
//  Solver::Options options;
358
 
//  scoped_ptr<Solver::Summary> summary1(Solve(problem, options));
 
357
//  Solger::Summary summary;
 
358
//
 
359
//  Solve(options, &problem, &summary)
359
360
//
360
361
//  loss_function->Reset(new HuberLoss(1.0), TAKE_OWNERSHIP);
361
362
//
362
 
//  scoped_ptr<Solver::Summary> summary2(Solve(problem, options));
 
363
//  Solve(options, &problem, &summary)
363
364
//
364
365
class LossFunctionWrapper : public LossFunction {
365
366
 public: