I am doing some image processing involving solving a system of linear equations. I am getting some errors and bits of the image looks corrupted. I would like to know what is the most stable way to solve these systems (I don't care how much cpu it takes to compute). It should try to avoid roundoff, catastrophic cancellation, etc...

Does anyone know the best method? (then I would need to find a way to code it in c#)

BTW I am implementing method 2 from here http://www.fmwconcepts.com/imagemagick/bilinearwarp/FourCornerImageWarp2.pdf and this is for solving the coefficients in the equations.


  • $\begingroup$ Are you sure that the problem is with the linear system, not the quadratic equation? $\endgroup$ – uranix Aug 7 '15 at 19:40
  • $\begingroup$ It could be the quadratic equation too. Is there a better way to do the quadratic equation? $\endgroup$ – omega Aug 7 '15 at 19:42
  • 1
    $\begingroup$ Please take a look at it.uom.gr/teaching/linearalgebra/NumericalRecipiesInC/c5-6.pdf $\endgroup$ – uranix Aug 7 '15 at 19:43
  • $\begingroup$ Also, I don't see any linear systems in the attached paper $\endgroup$ – uranix Aug 7 '15 at 19:44
  • 1
    $\begingroup$ The article you posted, worked for me, now my image looks perfect. $\endgroup$ – omega Aug 8 '15 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.