I'm working on Radial Distortion Correction:
I'm having an Equation in the form:
$$ r= r'((1+ K1.r'^2+ K2.r'^4+ K3.r'^6)/(1+ K4.r'^2+ K5.r'^4+ K6.r'^6)) $$
How can i solve for K1,K2,K3,K4,K5 & K6?
Note: r,r' are known variables
Std. Equation of Radial distortion will be in this form:
$$ r= r'(1+ K1.r'^2+ K2.r'^4+ K3.r'^6) $$
I solve this equation like this:
$$ (r- r')= K1.r'^3+ K2.r'^5+ K3.r'^7 $$ Linear Fit the above values to solve for K1,K2 & K3. But i'm not sure how to solve the above equation! Any help is much appreciated!