[Insight-users] dot product of itk vector was completely wrong

WANG Chengjia wangchengjia1986 at gmail.com
Tue Feb 11 14:46:36 EST 2014


Hi,

I'm not sure whether this is a bug, but I had two itk::vector<double, 3>
and when I printed them out, one of them are [0 0 1], the other one is [0 0
4]. I follow the example given in
http://www.itk.org/Wiki/ITK/Examples/Math/DotProduct
(directly multiply the two vector using '*')
and finally I got a inner product of them as [ 4 4 4], which is completely
wrong.

Is there something wrong in version 4.5?

Best,
Chengjia

-- 
Chengjia Wang
Phd Student,
University of Edinburgh
Clinical Research Imaging Center (CRIC)
Toshiba Medical Visualization Systems Europe, Ltd
Email: wangchengjia1986 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140211/a36511fb/attachment.html>


More information about the Insight-users mailing list