2D matrix transformation (Brown-Conrady distortion model) fitting

18 views (last 30 days)
Hello,
My question is how to fitting with a known model between one set of x and y and another set of x and y. The reason for this fitting is that I have a set of x and y data points (for example, 100 sets of x and y), and another set of corresponding xu and yu data points that the two sets of datapoints have the following relationship. How could I get the xc, yc, k1,k2...,p1,p2 parameters through fitting? The curve fitting app only fits x to y and x,y to z. The camera calibrator app needs an image as input to fit the distortion model. Both of them seem cannot be used for this type of fitting.
Best Regards
CZ

Accepted Answer

Matt J
Matt J on 3 Feb 2023
You can use lsqcurvefit if you have the Optimization Toolbox.
  3 Comments
Matt J
Matt J on 5 Feb 2023
It seems a xy fit function in that y is a function of x
Yes, but x and y can be of any dimension. It should apply to your problem.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!