find_center_of_rotation
Versión 1.0.0 (2,22 KB) por
Dirk-Jan Kroon
For lists of corresponding x,y points this function calculates the center of rotation and angle which warps the first to the second
For two lists of corresponding x,y points this function calculates
the center of rotation and rotation-angle, which warps the first list of x,y
points to the x,y points found in the second list.
[rot_point_xy,rot_angle] = find_center_of_rotation(xa,ya,xb,yb);
or
[rot_point_xy,rot_angle] = find_center_of_rotation(xa,ya,xb,yb, rot_angle_estimate)
Inputs
xa,ya : the first list of x,y coordinates
xb,yb : the second list of x,y coordinates, with each point
corresponding ot the point in the first list (but warped)
rot_angle_estimate : Estimate of the rotation angle between both list
of corresponding points
Outputs
rot_point_xy : The x and y position of the centre of rotation
rot_angle : The rotation angle which warps the points [xa,ya] to [xb,yb]
Method
Method is based on least squares optimization incombination of the
rotation point, and newton optimization of the rotation angle
Citar como
Dirk-Jan Kroon (2024). find_center_of_rotation (https://www.mathworks.com/matlabcentral/fileexchange/99719-find_center_of_rotation), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2019a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |