Can you explain to me how many and what methods are there in opencv c++ to solve systems of linear equations? if there are already existing tool or function already written, I can list the most efficient? My system has to solve an equation concerning the processing of digital images
if you have a system A*x = B
your solution is x=A^(-1)*B
.
OpenCV allows you to use three different invert()
method parameter choices:
Gaussian elimination with the optimal pivot element chosen.
singular value decomposition (SVD) method.
Cholesky decomposition; the matrix must be symmetrical and positive-definite.
more information here: http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#invert
edit:
in addition there is a solve()
method with additional methods:
http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#solve
edit 2: there is a short performance comparison for all the three methods:
Fastest method in inverse of matrix
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With