38template <
typename TCost>
39class TSSDAutomaskCost:
public TCost
46 TSSDAutomaskCost(
double src_mask_thresh,
double ref_mask_thresh);
48 virtual double do_value(
const Data& a,
const Data& b)
const;
49 virtual double do_evaluate_force(
const Data& a,
const Data& b, Force& force)
const;
50 double m_src_mask_thresh;
51 double m_ref_mask_thresh;
60template <
typename CP,
typename C>
61class TSSDAutomaskCostPlugin:
public CP
64 TSSDAutomaskCostPlugin();
67 double m_src_mask_thresh;
68 double m_ref_mask_thresh;
The generic cost function interface.
V Force
typedef for generic programming: The gradient forca type create by the cost function
T Data
typedef for generic programming: The data type used by the cost function
#define NS_BEGIN(NS)
conveniance define to start a namespace
#define NS_END
conveniance define to end a namespace