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