25 #include <tbb/parallel_reduce.h> 26 #include <tbb/blocked_range.h> 39 template <typename
TCost>
40 class 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;
60 template <
typename CP,
typename C>
61 class TSSDAutomaskCostPlugin:
public CP {
63 TSSDAutomaskCostPlugin();
66 double m_src_mask_thresh;
67 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 ...