Updated by Andrey Kamaev almost 13 years ago

I'm using the OpenCV 2.4, Visual studio 2010, Win7. The @invert@ invert function failed to return the determinant of @src@ src as described in the refman. It always return 1 no mater what's the input Matrix @src@. src.

Here is a sample code to reoccur this issue.

<pre><code class="cpp"> @
int main(int argc, char* argv[])
{
Matx22d mat(2, 0, 0, 2), inv;
printf("Determination = %g, %g\n", invert(mat, inv, CV_LU), determinant(mat));
return 0;
}
</code></pre> @

The output is: Determination = 1, 4, which is incorrect.

Back