[Insight-users] Rigid3DTransform make error

Sara Rolfe smrolfe at u.washington.edu
Fri Jan 6 17:47:41 EST 2012


Hello,

I'd like to use the Rigid3DTransform but I'm getting an error when I  
try to create a new instance.  I commented out all the lines of my  
code expect for:

	typedef itk::Rigid3DTransform<double> TransformType;
	TransformType::Pointer  transform = TransformType::New();

The second line results in the following error:

	/Users/smrolfe/build/LandmarkRegistration.cxx:132: error: conversion  
from ‘itk::SmartPointer<itk::MatrixOffsetTransformBase<double, 3u, 3u>  
 >’ to non-scalar type  
		‘itk::SmartPointer<itk::Rigid3DTransform<double> >’ requested

It seems strange that just declaring a new instance of the filter  
would cause this error.  I've tried substituting in the  
Rigid2DTransform and that works just fine.  Please let me know if you  
have any ideas.

Thanks,
Sara

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120106/d0c83e21/attachment.htm>


More information about the Insight-users mailing list