<div dir="ltr">Now it solved! thank you very much! :)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 12:54 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">David,<br>
<br>
Thanks for updating the Wiki Examples.<br>
<br>
Brad<br>
<div class="HOEnZb"><div class="h5"><br>
On Feb 11, 2014, at 3:45 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
<br>
> On Tue, Feb 11, 2014 at 3:04 PM, Bradley Lowekamp<br>
> <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
>> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Vector.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1Vector.html</a><br>
>><br>
>> The return type for the operator* for a dot product is Vector::ValueType, a<br>
>> scalar, not a vector.<br>
>> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Vector.html#a51bad5a3835ffc0fbbc02d5437f7e691" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1Vector.html#a51bad5a3835ffc0fbbc02d5437f7e691</a><br>

>><br>
>> By assigning to to a new Vector are implicitly calling this constructor:<br>
>> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Vector.html#a106ee9550311054cceb66015e98c6457" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1Vector.html#a106ee9550311054cceb66015e98c6457</a><br>

>><br>
>> The example is wrong. Watch your types.<br>
>><br>
>> Brad<br>
><br>
> Brad is right - the 'dotproduct' variable in the example should be a<br>
> VectorType::ComponentType, not just VectorType. I updated the page<br>
> with the fix.<br>
><br>
> David<br>
</div></div><div class="HOEnZb"><div class="h5">> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Chengjia Wang<br>Phd Student, <br>University of Edinburgh<br>Clinical Research Imaging Center (CRIC)<br>Toshiba Medical Visualization Systems Europe, Ltd<br>
Email: <a href="mailto:wangchengjia1986@gmail.com" target="_blank">wangchengjia1986@gmail.com</a><br>
</div>