[ITK Community] [Insight-users] dot product of itk vector was completely wrong
WANG Chengjia
wangchengjia1986 at gmail.com
Tue Feb 11 21:02:12 EST 2014
Now it solved! thank you very much! :)
On Wed, Feb 12, 2014 at 12:54 AM, Bradley Lowekamp
<blowekamp at mail.nih.gov>wrote:
> David,
>
> Thanks for updating the Wiki Examples.
>
> Brad
>
> On Feb 11, 2014, at 3:45 PM, David Doria <daviddoria at gmail.com> wrote:
>
> > On Tue, Feb 11, 2014 at 3:04 PM, Bradley Lowekamp
> > <blowekamp at mail.nih.gov> wrote:
> >> http://www.itk.org/Doxygen/html/classitk_1_1Vector.html
> >>
> >> The return type for the operator* for a dot product is
> Vector::ValueType, a
> >> scalar, not a vector.
> >>
> http://www.itk.org/Doxygen/html/classitk_1_1Vector.html#a51bad5a3835ffc0fbbc02d5437f7e691
> >>
> >> By assigning to to a new Vector are implicitly calling this constructor:
> >>
> http://www.itk.org/Doxygen/html/classitk_1_1Vector.html#a106ee9550311054cceb66015e98c6457
> >>
> >> The example is wrong. Watch your types.
> >>
> >> Brad
> >
> > Brad is right - the 'dotproduct' variable in the example should be a
> > VectorType::ComponentType, not just VectorType. I updated the page
> > with the fix.
> >
> > David
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
--
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://public.kitware.com/pipermail/community/attachments/20140212/97c89d0a/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list