21 #ifndef mia_template_ssd_masked_hh 22 #define mia_template_ssd_masked_hh 33 template <
typename TCost>
34 class TSSDMaskedImageCost:
public TCost {
37 typedef typename TCost::Mask Mask;
40 TSSDMaskedImageCost();
42 virtual double do_value(
const Data& a,
const Data& b,
const Mask& m)
const;
43 virtual double do_evaluate_force(
const Data& a,
const Data& b,
const Mask& m, Force& force)
const;
52 template <
typename CP,
typename C>
53 class TSSDMaskedImageCostPlugin:
public CP {
55 TSSDMaskedImageCostPlugin();
58 const std::string do_get_descr()
const;
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 ...