Hi 暖,
The methods ComputeCoefficientsForDataset returns the coefficients of
the best model instance for a given dataset (e.g. mesh / deformation
field). The squared norm of the resulting coefficient vector can be
interpreted as the Mahalanobis distance to the dataset
(
https://en.wikipedia.org/wiki/Mahalanobis_distance).
Regarding the formula you pasted: Statismo does not deal with
rotations, so quaternions are not implemented. But the final linear
combination sum b_m p_m seems to be an expansion of the shape in terms
of the model parameters. This can be achieved by calling the method
StatisticalModel::drawSample(coefficients), where the coefficients
would be the expansion coefficients in above formula.
Best regards,
Marcel
On Wed, Jun 28, 2017 at 5:13 AM, 暖 <
13005...@qq.com> wrote:
> Hi Marcel,
> I want to know the function "ComputeCoefficientsForDataset" in
> "StasticalModel.hxx" is to compute the distance between the mean shape of
> the input shapemodel and the input targetmeah, also it realize the
> computation of the in the figure below:
> Thanks very much !
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Marcel Luethi";<
marcel...@gmail.com>;
> 发送时间: 2017年5月22日(星期一) 下午4:44
> 收件人: "Ibrahim A"<
ibr...@gmail.com>;
> 抄送: "statismo"<
statism...@googlegroups.com>;
> 主题: Re: Statismo CLI vs Scalismo
>> email to
statismo-user...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "statismo" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
statismo-user...@googlegroups.com.