[ITK Community] [Insight-users] LandmarkBasedTransformInitializer
Johnson, Hans J
hans-johnson at uiowa.edu
Wed Dec 11 14:31:07 EST 2013
Massinissa,
cannot convert parameter 1 from
'itk::SmartPointer<TObjectType>' to 'const
itk::Transform<TScalarType,NInputDimensions,NOutputDimensions> *'
You have
TObjectType::Pointer myvar = <<something>>
itk::ResampleImageFilter::Pointer myresampler;
myresampler->SetTransform( myvar );
You need:
myresampler->SetTransform( myvar.GetPointer() );
=============
'SmartPointers' are not convertible to 'const raw pointers'. 'raw
pointers' are convertible to 'const raw pointers'.
Hans
-----Original Message-----
From: Massinissa Bandou <Massinissa.Bandou at USherbrooke.ca>
Date: Wednesday, December 11, 2013 1:25 PM
To: "insight-users at itk.org" <insight-users at itk.org>
Subject: [Insight-users] LandmarkBasedTransformInitializer
Hello everyone,
I tried to run this examples:
http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformIni
tializer
but I got the following error:
Error 47 error C2664:
'itk::ResampleImageFilter<TInputImage,TOutputImage>::SetTransform' : cannot
convert parameter 1 from 'itk::SmartPointer<TObjectType>' to 'const
itk::Transform<TScalarType,NInputDimensions,NOutputDimensions> *'
C:\Users\Massi\Desktop\TomoRegistration\TomoRegistration\ITKRegistration.cp
p
319 1 TomoRegistration
Can anyone help me figure out what's wrong??
Massi
--
View this message in context:
http://itk-users.7.n7.nabble.com/LandmarkBasedTransformInitializer-tp32954.
html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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
________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
________________________________
_____________________________________
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