18#ifndef __registration_metric_linear_base_h__
19#define __registration_metric_linear_base_h__
23 namespace Registration
38 template <
class ParamType>
39 default_type precompute (ParamType& parameters) { assert (0 &&
"FIXME: requires_precompute defined but precompute not implemented for this metric.");
return 0.; }
44 template <
class Im1Type = Image<default_type>,
class Im2Type = Image<default_type>>
45 void init (
const Im1Type& im1,
const Im2Type& im2) { assert (0 &&
"FIXME: requires_initialisation defined but init not implemented for this metric."); }
52 void set_weights (Eigen::VectorXd weights) {
57 template <
class Params>
59 const Eigen::Vector3d& im1_point,
60 const Eigen::Vector3d& im2_point,
61 const Eigen::Vector3d& midway_point,
62 Eigen::Matrix<default_type, Eigen::Dynamic, 1>& gradient);
Eigen::VectorXd mc_weights
double default_type
the default type used throughout MRtrix