[Insight-users] [ITK Community] error in building.. i think it's common?
Luis Ibanez
luis.ibanez at kitware.com
Sat Jan 11 13:00:46 EST 2014
Tim,
Thanks for sharing the code in the gist.
I just downloaded it and compile it in Linux,
with no errors.
Had you already fixed the problem ?
(maybe following Matt's advice ?)
Please let us know if we can still help,
Thanks
Luis
On Tue, Jan 7, 2014 at 12:12 PM, Tim Bhatnagar <tim.bhatnagar at gmail.com>wrote:
> I've posted the cxx, txx and h-files associated with the program in
> question, to a gist:
>
> https://gist.github.com/anonymous/8302651
>
> I'm certain this is a fairly trivial error (I hope!), but any direction is
> much appreciated!
>
> Thanks,
>
> Tim
>
>
> On Mon, Jan 6, 2014 at 3:44 PM, Matt McCormick <matt.mccormick at kitware.com
> > wrote:
>
>> Hi Tim,
>>
>> The error looks like it is related to const'ness instead of SmartPointer
>> from
>>
>> 'itk::Vector<T,
>> NVectorDimension>' to 'const itk::Vector<T,NVectorDimension> &'
>>
>> Hope this helps,
>> Matt
>>
>> On Mon, Jan 6, 2014 at 6:30 PM, Tim Bhatnagar <tim.bhatnagar at gmail.com>
>> wrote:
>> > Hi all,
>> >
>> > I am trying to build an Inverter for Deformation Fields that I gathered
>> from
>> > source code at:
>> >
>> > http://www.insight-journal.com/browse/publication/768
>> >
>> > The error I'm pasting below has something to do with using
>> smartpointers, I
>> > believe, but if anyone can point to the change I need to make, I'd be
>> very
>> > appreciative. Thanks!
>> >
>> > I am getting the following error when compiling in Visual Studio Express
>> > 2010:
>> >
>> >
>> C:/ITKrap/InsightToolkit-4.2.0/Modules/Core/Common/include\itkFixedPointInverseDeformationFieldImageFilter.txx(109):
>> > error C2664: 'itk::ImageRegionIterator<TImage>::Set' : cannot convert
>> > parameter 1 from 'itk::Vector<T,NVectorDimension>' to 'const
>> > itk::Vector<T,NVectorDimension> &'
>> > with
>> > [
>> > TImage=itk::Image<VectorPixelType,3>
>> > ]
>> > and
>> > [
>> > T=double,
>> > NVectorDimension=3
>> > ]
>> > and
>> > [
>> > T=float,
>> > NVectorDimension=3
>> > ]
>> > Reason: cannot convert from 'itk::Vector<T,NVectorDimension>'
>> to
>> > 'const itk::Vector<T,NVectorDimension>'
>> > with
>> > [
>> > T=double,
>> > NVectorDimension=3
>> > ]
>> > and
>> > [
>> > T=float,
>> > NVectorDimension=3
>> > ]
>> > No user-defined-conversion operator available that can perform
>> > this conversion, or the operator cannot be called
>> >
>> >
>> C:/ITKrap/InsightToolkit-4.2.0/Modules/Core/Common/include\itkFixedPointInverseDeformationFieldImageFilter.txx(51)
>> > : while compiling class template member function 'void
>> >
>> itk::FixedPointInverseDeformationFieldImageFilter<TInputImage,TOutputImage>::GenerateData(void)'
>> > with
>> > [
>> > TInputImage=InputDFType,
>> > TOutputImage=OutputDFType
>> > ]
>> >
>> >
>> C:\ITKrap\DiffeomorphicDemons-2009-06-Vercauteren-IJSource\InvertDeformationField.cxx(50)
>> > : see reference to class template instantiation
>> >
>> 'itk::FixedPointInverseDeformationFieldImageFilter<TInputImage,TOutputImage>'
>> > being compiled
>> > with
>> > [
>> > TInputImage=InputDFType,
>> > TOutputImage=OutputDFType
>> > ]
>> >
>> > --
>> > Tim Bhatnagar
>> > PhD Candidate
>> > Orthopaedic Injury Biomechanics Group
>> > Department of Mechanical Engineering
>> > University of British Columbia
>> >
>> > Rm 5000 - 818 West 10th Ave.
>> > Vancouver, BC
>> > Canada
>> > V5Z 1M9
>> >
>> > Ph: (604) 675-8845
>> > Fax: (604) 675-8820
>> > Web: oibg.mech.ubc.ca
>> >
>> >
>> > _____________________________________
>> > 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
>> >
>> > _______________________________________________
>> > Community mailing list
>> > Community at itk.org
>> > http://public.kitware.com/cgi-bin/mailman/listinfo/community
>> >
>>
>
>
>
> --
> Tim Bhatnagar
> PhD Candidate
> Orthopaedic Injury Biomechanics Group
> Department of Mechanical Engineering
> University of British Columbia
>
> Rm 5000 - 818 West 10th Ave.
> Vancouver, BC
> Canada
> V5Z 1M9
>
> Ph: (604) 675-8845
> Fax: (604) 675-8820
> Web: oibg.mech.ubc.ca
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140111/20949541/attachment.html>
More information about the Insight-users
mailing list