[Insight-users] PointSetToImageRegistrationMethod with Rigid3DPerspectiveTransform
Patil, Lalit
lpatil at umich.edu
Thu May 15 16:58:47 EDT 2008
Hi,
I wonder if there is a good approach to perform registration of 2D
camera images (jpg) with the point cloud of an object. I haven't yet
tried using IntensityBased2D3Dregistration, though. One reason being
that I am struggling with determining the best/easiest way of giving a
point cloud as an input to the application.
Perhaps, this should be a separate question by itself and not in
response to my own query. But, I put it in here to indicate that
PointSetToImageRegistration did not seem to compile well in my case.
Any inputs are appreciated!
Lalit
> -----Original Message-----
> From: Patil, Lalit
> Sent: Tuesday, May 13, 2008 6:46 PM
> To: 'insight-users at itk.org'
> Subject: PointSetToImageRegistrationMethod with
> Rigid3DPerspectiveTransform
>
> 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>::S
> etTransform' : cannot convert parameter 1 from
> 'itk::Rigid3DPerspectiveTransform<TScalarType>::Pointer' to
>
'itk::PointSetToImageRegistrationMethod<TFixedPointSet,TMovingImage>::T
> ransformType *'
> 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