Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Alignment of 3D Points
Replies: 10   Last Post: Dec 16, 2012 2:46 AM

 Messages: [ Previous | Next ]
 Anu Posts: 64 Registered: 2/22/05
Re: Alignment of 3D Points
Posted: Dec 14, 2012 11:18 AM

"Matt J" wrote in message <kafh50\$onj\$1@newscl01ah.mathworks.com>...
> "Anusha " <anusha@cs.usm.my> wrote in message <kafdo9\$cub\$1@newscl01ah.mathworks.com>...
> >
> > But I have different number of point for set A and set B. Can procrustes can be done on this case? I prefer to align them to a standard coordinate system, let say mayb on a given center of gravity.

> =================
>
> Assuming A is 3xN and B is 3xM, you can translate the centroid of B to coincide with the centroid of A as follows
>
> Bnew=bsxfun(@plus,B,mean(A,2)-mean(B,2));
>
> It's not clear, though, why you're only asking about aligning the centroids. What information is there about the rotation of A relative to B and why don't you care about it?

Actually what I need to do is aligning A and B into a standard coordinate system. When I say aligning to the centroid, it means that during aligning A and B to standard coordinate, maybe the centroid of either A or B can be utilized to give the center of gravity for alignment. Hope Im making myself clear.

Date Subject Author
12/13/12 Anu
12/13/12 Matt J
12/13/12 Roger Stafford
12/14/12 Anu
12/14/12 Matt J
12/14/12 Anu
12/14/12 Matt J
12/15/12 Anu
12/15/12 Roger Stafford
12/16/12 Matt J
12/14/12 Roger Stafford