[Insight-users] itkRaycastInterpolateImageFunction problem

Julien Jomier jjomier at cs.unc.edu
Thu, 29 Apr 2004 16:32:22 -0400


Hi Jared,

Thanks for pointing this out. This class was never really tested.
I just put a fix in the current CVS repository.

Let us know if you have further problem with this class,
thanks again for the report,

Julien

-----Original Message-----
From: insight-users-admin at itk.org [mailto:insight-users-admin at itk.org] =
On
Behalf Of Jared Starman
Sent: Thursday, April 29, 2004 3:17 PM
To: insight-users at itk.org
Subject: [Insight-users] itkRaycastInterpolateImageFunction problem


Hi,
I'm new to using ITK, and I'm trying to execute the following code.
=20
typedef double               VoxelType;
            const   unsigned int        VolumeDimension =3D 3;
=20
            typedef itk::Image< VoxelType, VolumeDimension >
ImageTypeVolume;
           =20
typedef itk::RayCastInterpolateImageFunction< ImageTypeVolume, double >
RayCastType;
RayCastType::Pointer RayCaster =3D RayCastType::New();
=20
However, I get the following error from MVC++ 6.0 that says
.itkRayCastInterpolateImageFunction.txx(595) : error C2440: =
'initializing' :
cannot convert from 'const class itk::Vector<double,3>' to 'const double =
*
'
        No user-defined-conversion operator available that can perform =
this
conversion, or the operator cannot be called
=20
.\..\..\Insight\InsightToolkit-1.6.0\Code\Common\itkImportImageContainer.=
h(8
7) : while compiling class-template member function 'bool __thiscall
itk::RayCastInterpolateImageFunction<class
itk::Image<double,3>,double>::SetRay(class itk::Point
<double,3>,class itk::Vector<double,3>) const'
=20
So, what exactly am I doing wrong?
=20
Thanks for your help!
-Jared
=20
=20