OpenCV の SURF 機能検出を使用して 2 つの画像を比較しています。2 つの同一の画像 (同じ画像が選択されることもあります) を選択すると、次のようになります。
OpenCV Error: Assertion failed (CV_IS_MAT(imagePoints) && CV_IS_MAT(objectPoints)) in cvFindHomography, file /home/OpenCV/OpenCV-2.4.3/modules/calib3d/src/fundam.cpp, line 232
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'cv::Exception'
what(): /home/OpenCV/OpenCV-2.4.3/modules/calib3d/src/fundam.cpp:232: error: (-215) CV_IS_MAT(imagePoints) && CV_IS_MAT(objectPoints) in function cvFindHomography
Le programme s'est terminé subitement
2 つの異なる画像を使用してコードを 2 回実行すると、次のようになります。
what(): /home/OpenCV/OpenCV-2.4.3/modules/calib3d/src/fundam.cpp:235: error: (-215) count >= 4 in function cvFindHomography
毎回異なる画像で何度も実行を繰り返したところ、いくつかのテストで望ましい結果が得られました。