[Insight-users] PointSetToImageRegistrationMethod with Rigid3DPerspectiveTransform
Patil, Lalit
lpatil at umich.edu
Tue May 13 18:46:09 EDT 2008
Hello everyone,
I am new to using ITK and wanted to register a 2D image (jpg file) to a
3D point cloud.
I noticed that there is an application called
IntensityBased2D3DRegistration. Yet, I wanted to also try coding
registration myself.
So, I tried using PointSetToImageRegistrationMethod<FixedPointSetType,
MovingImageType> with
1. Rigid3DPerspectiveTransform <float>
2. NormalizedCorrelationPointSetToImageMetric <FixedPointSetType,
MovingImageType>
3. LinearInterpolateImageFunction <MovingImageType, double>
4. VersorRigid3DTransformOptimizer
However, I get the following error message during compilation:
-----------
error C2664:
'itk::PointSetToImageRegistrationMethod<TFixedPointSet,TMovingImage>::Se
tTransform' : cannot convert parameter 1 from
'itk::Rigid3DPerspectiveTransform<TScalarType>::Pointer' to
'itk::PointSetToImageRegistrationMethod<TFixedPointSet,TMovingImage>::Tr
ansformType *'
with
[
TFixedPointSet=FixedPointSetType,
TMovingImage=MovingImageType
]
and
[
TScalarType=float
]
and
[
TFixedPointSet=FixedPointSetType,
TMovingImage=MovingImageType
]
---------------------
I have noticed that others have received the same error, but in all
those cases, the users have been asked to use IntensityBased... or other
existing codes.
Is it possible to find out why exactly, we get this error. I checked
ModelToImageRegistration2.cxx, and I don't get this error. Is this
something to do coupling Rigid3DPerspectiveTransform with
PointSetToImageRegistrationMethod?
Any inputs will be most appreciated.
Thanks,
Lalit Patil
More information about the Insight-users
mailing list