Iteratively selecting rotation angle for alingment
5 次查看(过去 30 天)
显示 更早的评论
Hi all, I am trying to build an alignment function to find the lowest RMSE. I can’t upload the code but this works by taking 3 rotation angle for x,y and z as input. My polblme is trying to not just brute force try all angle possibilities so for example right now I have x = linspace(-10,0,50) for each but this is a crazy amount of permutations to try has anybody tried to solve anything similar. I know I could just randomly choose an angle and see if lowers my error. Any tips please tim
回答(2 个)
Star Strider
2025-1-5
I do not understand what you are doing or want to do. Calculating the RMSE implies that you have something you want to compare the input values to, however it is not obvious what that is.
If (x,y,z) are Cartesian values (with respect to an origin at (0,0,0)), you can use the cart2pol function to convert them to azimuth, elevation, and radius.
2 个评论
Star Strider
2025-1-5
To do nonlinear optimisation, using your own function would be required.
What I still do not understand are the data you are working with, and what you want to do with them. What are you comparing? (Wanting to calculate the RMSE implies minimising the error in comparing your data with something.) What information do you want as the result?
Matt J
2025-1-5
Even if these do not use the alignment cost function you want, they ought to provide decent initial guesses for the Optimization Toolbox solvers.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!