Ashwinning / libmv

Automatically exported from code.google.com/p/libmv
MIT License
0 stars 0 forks source link

FocalFromFundamental does not handle the case when no result is possible. #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a fundamental matrix corresponding to two cameras with crossing
viewing directions.
2. Call focal from fundamental.

An assert fails because it tries to compute the sqrt of a negative number.

The function should return some kind of error, so that the caller can do
something accordingly.

Original issue reported on code.google.com by pau.garg...@gmail.com on 26 Apr 2009 at 6:33