[Insight-users] MatrixOffsetTransformBase Error from AffineTransform

Mehmet Suzen msuzen at mango-solutions.com
Fri Aug 19 10:59:40 EDT 2011


Dear List,

Trying to write a registration pipeline, following this;

	AffineTransform 
	MutualInformationImageToImageMetric 
	VersorRigid3DTransformOptimizer
	LinearInterpolator

I have set AffineTransform all 12 parameters in 3D as follows:

	transform->SetParameters( initialParameters );
	registration->SetInitialTransformParameters(
transform->GetParameters() );

And initial parameters really contain 12 parameters but I am getting the

following error, any ideas what can cause this?

itk::ExceptionObject (0x2ac2bd0)
Location: "void itk::MatrixOffsetTransformBase<TScalarType,
NInputDimensions, NOutputDimensions>::SetParameters(const typename
itk::Transform<TScalarType, NInputD
imensions, NOutputDimensions>::ParametersType&) [with TScalarType =
double, unsigned int NInputDimensions = 3u, unsigned int
NOutputDimensions = 3u]"
File:
c://ITK/InsightToolkit-3.20.0/Code/Common/itkMatrixOffsetTransformBase.t
xx
Line: 391
Description: itk::ERROR: AffineTransform(0x2849020): Error setting
parameters: parameters array size (6) is less than expected
(NInputDimensions * NOutputDimensi
ons + NOutputDimensions)  (3 * 3 + 3 = 12)
LEGAL NOTICE
This message is intended for the use of the named recipient(s) only and may contain confidential and / or privileged information. If you are not the intended recipient, please contact the sender and delete this message. Any unauthorised use of the information contained in this message is prohibited.
Mango Business Solutions Limited is registered in England under No. 4560258 with its registered office at Suite 3, Middlesex House, Rutherford Close, Stevenage, Herts, SG1 2EF, UK.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL


More information about the Insight-users mailing list