Rank: 54583 based on 0 downloads (last 30 days) and 0 file submitted
photo

lajulajay

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by lajulajay
Updated File Comments Rating
15 Jul 2009 B-spline Grid, Image and Point based Registration B-spline registration of two 2D / 3D images or corrsp. points, affine and with smooth b-spline grid. Author: Dirk-Jan Kroon

Hi, whenever I try using landmarks I get a matrix multiplication error:

*******************************************************************************
??? Error using ==> times
Matrix dimensions must agree.

Error in ==> affine_registration_error>affine_point_error at 255
errordis=sum(distance.*PStrength);

Error in ==> affine_registration_error>affine_registration_error_2d at 161
e=e+affine_point_error(M,I1,Points1, Points2, PStrength);

Error in ==> affine_registration_error at 107
e=affine_registration_error_2d(par,I1,I2,type,O_trans,Spacing,MaskI1,MaskI2,Points1,Points2,PStrength);

Error in ==>
register_images>@(x)affine_registration_error(x,scale,ITmoving,ITstatic,type,O_trans,Spacing,MASKmoving,MASKstatic,Points1t,Points2t,PStrengtht)

Error in ==> fminlbfgs>gradient_function at 729
[fval, grad]=feval(funfcn,reshape(x,data.xsizes));

Error in ==> fminlbfgs at 154
[data,fval,grad]=gradient_function(data.xInitial,funfcn, data, optim);

Error in ==> register_images at 230
x=fminlbfgs(@(x)affine_registration_error(x,scale,ITmoving,ITstatic,type,O_trans,Spacing,MASKmoving,MASKstatic,Points1t,Points2t,PStrengtht),x,optim);
*******************************************************************************

I am using three landmark points; i.e. Points1 and Points2 are 3 by 2 matrices and PStrength is a 3 by 1 matrix.

Thanks.

Contact us