<div dir="ltr">Tim,<div><br></div><div>Thanks for sharing the code in the gist.</div><div><br></div><div>I just downloaded it and compile it in Linux,</div><div>with no errors.</div><div><br></div><div>Had you already fixed the problem ?</div>
<div>(maybe following Matt's advice ?)</div><div><br></div><div><br></div><div>Please let us know if we can still help,</div><div><br></div><div> Thanks</div><div><br></div><div> Luis</div><div><br></div><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 12:12 PM, Tim Bhatnagar <span dir="ltr"><<a href="mailto:tim.bhatnagar@gmail.com" target="_blank">tim.bhatnagar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I've posted the cxx, txx and h-files associated with the program in question, to a gist:<br><br>
<a href="https://gist.github.com/anonymous/8302651" target="_blank">https://gist.github.com/anonymous/8302651</a><br><br>
</div>I'm certain this is a fairly trivial error (I hope!), but any direction is much appreciated!<br><br>Thanks,<br><br>Tim<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jan 6, 2014 at 3:44 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tim,<br>
<br>
The error looks like it is related to const'ness instead of SmartPointer from<br>
<br>
'itk::Vector<T,<br>
<div>NVectorDimension>' to 'const itk::Vector<T,NVectorDimension> &'<br>
<br>
</div>Hope this helps,<br>
Matt<br>
<div><div><br>
On Mon, Jan 6, 2014 at 6:30 PM, Tim Bhatnagar <<a href="mailto:tim.bhatnagar@gmail.com" target="_blank">tim.bhatnagar@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I am trying to build an Inverter for Deformation Fields that I gathered from<br>
> source code at:<br>
><br>
> <a href="http://www.insight-journal.com/browse/publication/768" target="_blank">http://www.insight-journal.com/browse/publication/768</a><br>
><br>
> The error I'm pasting below has something to do with using smartpointers, I<br>
> believe, but if anyone can point to the change I need to make, I'd be very<br>
> appreciative. Thanks!<br>
><br>
> I am getting the following error when compiling in Visual Studio Express<br>
> 2010:<br>
><br>
> C:/ITKrap/InsightToolkit-4.2.0/Modules/Core/Common/include\itkFixedPointInverseDeformationFieldImageFilter.txx(109):<br>
> error C2664: 'itk::ImageRegionIterator<TImage>::Set' : cannot convert<br>
> parameter 1 from 'itk::Vector<T,NVectorDimension>' to 'const<br>
> itk::Vector<T,NVectorDimension> &'<br>
> with<br>
> [<br>
> TImage=itk::Image<VectorPixelType,3><br>
> ]<br>
> and<br>
> [<br>
> T=double,<br>
> NVectorDimension=3<br>
> ]<br>
> and<br>
> [<br>
> T=float,<br>
> NVectorDimension=3<br>
> ]<br>
> Reason: cannot convert from 'itk::Vector<T,NVectorDimension>' to<br>
> 'const itk::Vector<T,NVectorDimension>'<br>
> with<br>
> [<br>
> T=double,<br>
> NVectorDimension=3<br>
> ]<br>
> and<br>
> [<br>
> T=float,<br>
> NVectorDimension=3<br>
> ]<br>
> No user-defined-conversion operator available that can perform<br>
> this conversion, or the operator cannot be called<br>
><br>
> C:/ITKrap/InsightToolkit-4.2.0/Modules/Core/Common/include\itkFixedPointInverseDeformationFieldImageFilter.txx(51)<br>
> : while compiling class template member function 'void<br>
> itk::FixedPointInverseDeformationFieldImageFilter<TInputImage,TOutputImage>::GenerateData(void)'<br>
> with<br>
> [<br>
> TInputImage=InputDFType,<br>
> TOutputImage=OutputDFType<br>
> ]<br>
><br>
> C:\ITKrap\DiffeomorphicDemons-2009-06-Vercauteren-IJSource\InvertDeformationField.cxx(50)<br>
> : see reference to class template instantiation<br>
> 'itk::FixedPointInverseDeformationFieldImageFilter<TInputImage,TOutputImage>'<br>
> being compiled<br>
> with<br>
> [<br>
> TInputImage=InputDFType,<br>
> TOutputImage=OutputDFType<br>
> ]<br>
><br>
> --<br>
> Tim Bhatnagar<br>
> PhD Candidate<br>
> Orthopaedic Injury Biomechanics Group<br>
> Department of Mechanical Engineering<br>
> University of British Columbia<br>
><br>
> Rm 5000 - 818 West 10th Ave.<br>
> Vancouver, BC<br>
> Canada<br>
> V5Z 1M9<br>
><br>
> Ph: <a href="tel:%28604%29%20675-8845" value="+16046758845" target="_blank">(604) 675-8845</a><br>
> Fax: <a href="tel:%28604%29%20675-8820" value="+16046758820" target="_blank">(604) 675-8820</a><br>
> Web: <a href="http://oibg.mech.ubc.ca" target="_blank">oibg.mech.ubc.ca</a><br>
><br>
><br>
</div></div>> _____________________________________<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>
> _______________________________________________<br>
> Community mailing list<br>
> <a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>Tim Bhatnagar<br>PhD Candidate<br>Orthopaedic Injury Biomechanics Group<br>Department of Mechanical Engineering<br>University of British Columbia<br><br>Rm 5000 - 818 West 10th Ave.<br>
Vancouver, BC<br>Canada<br>V5Z 1M9<br><br>Ph: <a href="tel:%28604%29%20675-8845" value="+16046758845" target="_blank">(604) 675-8845</a><br>Fax: <a href="tel:%28604%29%20675-8820" value="+16046758820" target="_blank">(604) 675-8820</a><br>
Web: <a href="http://oibg.mech.ubc.ca" target="_blank">oibg.mech.ubc.ca</a><br>
</div>
</div></div><br>_____________________________________<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></blockquote></div><br></div>