This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Umeayama without scaling

Tags: None
(comma "," separated)
dandelin
Registered Member
Posts
6
Karma
0

Umeayama without scaling

Tue Mar 19, 2013 2:43 pm
If I understand the Geometry module's umeyama function correctly, it takes source points X and destination points Y and returns a transformation T corresponding to

Y_approx = T * X = scale * X + t_scaled
t_scaled = mean(Y) - scale* R *mean(X)

when called with scaling. When called without scaling, it returns

Y_approx = R* X + t_scaled

that is, it removes the scale factor from the linear part but computes the translation in the same way. I would expect it to return
Y = R* X + t
t = mean(Y) - R *mean(X)

when called without scaling. Put differently, I would expect

Y_approx = scale*R*[X-mean(X)] + mean(Y) (with scaling)
Y_approx = R*[X-mean(X)] + mean(Y) (without scaling)

I realize that I may be misreading the code, but if not, is the present version the intended one?
Hauke
Registered Member
Posts
109
Karma
3
OS

Re: Umeayama without scaling

Tue Mar 19, 2013 5:09 pm
Hi Dandelin,

Thanks for the report. I think this is fixed in the devel branch. Which version are you using?

Regards,
Hauke
dandelin
Registered Member
Posts
6
Karma
0

Re: Umeayama without scaling

Wed Mar 20, 2013 10:24 am
I'm using version 3.1. Indeed, it looks fixed in the development branch, great! I should have looked there first.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]