38 for (std::vector<Quaternion>::size_type i=0; i<quaternions.size(); i++)
40 result[0] += quaternions.at(i)[0];
41 result[1] += quaternions.at(i)[1];
42 result[2] += quaternions.at(i)[2];
43 result[3] += quaternions.at(i)[3];
45 result[0] /= quaternions.size();
46 result[1] /= quaternions.size();
47 result[2] /= quaternions.size();
48 result[3] /= quaternions.size();
53 MITK_WARN <<
"SLERP is not implemented yet!";
vnl_quaternion< ScalarType > Quaternion
virtual ~QuaternionAveraging()
static mitk::Quaternion CalcAverage(const std::vector< Quaternion > &quaternions, Mode mode=SimpleMean)