Ammar Durghalli
unread,Jun 23, 2011, 12:27:59 AM6/23/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dirart
I'm trying to understand why in many places the motion fields are
devided by 2. this contradicts the publication on which the algorithm
is based. For example:
lines 246-252:
mvy_this_step =
move3dimage(mvy_this_step,mvy1/2,mvx1/2,mvz1/2,'linear') + mvy1;
mvx_this_step =
move3dimage(mvx_this_step,mvy1/2,mvx1/2,mvz1/2,'linear') + mvx1;
mvz_this_step =
move3dimage(mvz_this_step,mvy1/2,mvx1/2,mvz1/2,'linear') + mvz1;
imvy_this_step = move3dimage(imvy_this_step,-mvy1/2,-mvx1/2,-
mvz1/2,'linear') - mvy1;
imvx_this_step = move3dimage(imvx_this_step,-mvy1/2,-mvx1/2,-
mvz1/2,'linear') - mvx1;
imvz_this_step = move3dimage(imvz_this_step,-mvy1/2,-mvx1/2,-
mvz1/2,'linear') - mvz1;
also lines 274-275: (which also contradict the rule for composition of
motion fields)
i1vx = move3dimage(single(im1), (mvy + mvy_this_step)/2, (mvx +
mvx_this_step)/2, (mvz + mvz_this_step)/2,'linear');
i2vx = move3dimage(single(im2),(imvy + imvy_this_step)/2,(imvx +
imvx_this_step)/2,(imvz + imvz_this_step)/2,'linear');
same thing is in lines 327-333
your answer is greatly appreciated
A.Durghalli