<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Vishal,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">you probably need to change the line in <a href="https://github.com/midas-journal/midas-journal-784/blob/master/itkSiddonJacobsRayCastInterpolateImageFunction.h">itkSiddonJacobsRayCastInterpolateImageFunction.h</a> which says:</div><div class="gmail_default" style=""><font face="verdana, sans-serif">typedef Euler3DTransform<TCoordRep> TransformType;</font><br></div><div class="gmail_default" style=""><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="verdana, sans-serif">If you make improvements, would you mind making a pull request to the <a href="https://github.com/midas-journal/midas-journal-784">repository</a> so others can benefit from your work?</font></div><div class="gmail_default" style=""><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="verdana, sans-serif">Regards</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 2, 2016 at 7:24 AM, vishal <span dir="ltr"><<a href="mailto:itkhelpacc@gmail.com" target="_blank">itkhelpacc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
Im currently working on registering 2d x ray image with 3d CT volume (2d/3d<br>
registration algorithm) and I have obtained pretty good results by using<br>
euler 3d transform, siddon Raycast interpolator, powell optimizer and NCG<br>
metric.. I read some post in the mailing list saying that using Versor 3d<br>
transform for such application is feasible and I tried it unfortunately Im<br>
not able to connect the Siddon ray cast interpolator to versor 3d<br>
transform... this the piece of the code where im initializing the<br>
interpolator<br>
<br>
const double dtr = ( atan(1.0) * 4.0 ) / 180.0;<br>
interpolator1->SetProjectionAngle( dtr*projAngle1 );<br>
interpolator1->SetFocalPointToIsocenterDistance(scd);<br>
interpolator1->SetThreshold(threshold);<br>
interpolator1->SetTransform(transform); // this line the error occurs<br>
interpolator1->Initialize();<br>
registration->SetInitialTransformParameters( transform->GetParameters()<br>
);<br>
<br>
the error is as follows..<br>
error C2664:<br>
'itk::SiddonJacobsRayCastInterpolateImageFunction<TInputImage,TCoordRep>::SetTransform'<br>
: cannot convert parameter 1 from 'itk::SmartPointer<TObjectType>' to<br>
'itk::Euler3DTransform<TParametersValueType> *'<br>
D:\Project_realted_example\MyOwnCodeRegistratonWithVersor\versor.cxx 696<br>
<br>
IntelliSense: no suitable conversion function from<br>
"itk::SmartPointer<itk::VersorRigid3DTransform<double>>" to<br>
"itk::Euler3DTransform<double> *" exists<br>
d:\Project_realted_example\MyOwnCodeRegistratonWithVersor\versor.cxx 696<br>
<br>
<br>
its seems as though it is impossible to connect siddon ray casting<br>
interpolator to the versor 3d transform and IT ONLY WORKS with Euler3d<br>
transform...<br>
please give me some advice.. how can I solve this problem?<br>
Regards<br>
Vishal<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/problem-using-VersorRigid3DTransform-fo-2d-3d-registration-Please-advice-tp36714.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/problem-using-VersorRigid3DTransform-fo-2d-3d-registration-Please-advice-tp36714.html</a><br>
Sent from the ITK - Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>