g2o
Loading...
Searching...
No Matches
Public Member Functions | List of all members
InvChi2CostFunction Struct Reference
Inheritance diagram for InvChi2CostFunction:
Inheritance graph
[legend]
Collaboration diagram for InvChi2CostFunction:
Collaboration graph
[legend]

Public Member Functions

virtual double operator() (HyperGraph::Edge *edge, HyperGraph::Vertex *from, HyperGraph::Vertex *to)
 
- Public Member Functions inherited from g2o::HyperDijkstra::CostFunction
virtual ~CostFunction ()
 

Detailed Description

Definition at line 61 of file g2o-unfold.cpp.

Member Function Documentation

◆ operator()()

double InvChi2CostFunction::operator() ( HyperGraph::Edge edge,
HyperGraph::Vertex from,
HyperGraph::Vertex to 
)
virtual

Implements g2o::HyperDijkstra::CostFunction.

Definition at line 66 of file g2o-unfold.cpp.

70 {
71 OptimizableGraph::Edge* e = dynamic_cast<OptimizableGraph::Edge*>(edge);
72 e->computeError();
73 if (e->robustKernel()) e->robustifyError();
74 return 1.0 / (1e-6 + e->chi2());
75}
virtual double chi2() const =0
virtual void computeError()=0
RobustKernel * robustKernel() const
if NOT NULL, error of this edge will be robustifed with the kernel

References g2o::OptimizableGraph::Edge::chi2(), g2o::OptimizableGraph::Edge::computeError(), and g2o::OptimizableGraph::Edge::robustKernel().


The documentation for this struct was generated from the following file: