Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Assertion Failed Error - AKAZE

Before posting this question I followed the answers posted in this thread but it didn't helped me however the question is eactly the same one.

I am using OpenCV for Android Version 3.1.0. I tried to use AKAZE detector and AKAZE descriptor. When I run the code on my Emulator am getting the below error.

 OpenCV Error: Assertion failed (scn + 1 == m.cols) in void CV:perspectiveTransform(cv::InputArray, cv::OutputArray, cv::InputArray), 
file/Volumes/Linux/builds/master_pack-android/opencv/modules/core/src/matmul.cpp, line 2125

core::perspectiveTransform_10() caught cv::Exception: /Volumes/Linux/builds/master_pack-android/opencv/modules/core/src/matmul.cpp:2125: 
error: (-215) scn + 1 == m.cols in function void CV:perspectiveTransform(cv::InputArray, cv::

Am using

private final Mat firstCorners = new Mat(4,1, CvType.CV_32FC2)

private final Mat secondCorners = new Mat(4,1, CvType.CV_32FC2)

final Mat homography = Calib3d.findHomography(first, second, Calib3d.RANSAC, 1)

Core.perspectiveTransform(firstCorners, secondCorners, homography)

I used Cv_32FC2 as posted in the above thread answer but still am getting the same error.

Any help on this.

OpenCV Assertion Failed Error - AKAZEPerspective Transform

Before posting this question I followed the answers posted in this thread but it didn't helped me however the question is eactly the same one.

http://answers.opencv.org/question/18252/opencv-assertion-failed-for-perspective-transform/

I am using OpenCV for Android Version 3.1.0. I tried to use AKAZE detector and AKAZE descriptor. When I run the code on my Emulator am getting the below error.

 OpenCV Error: Assertion failed (scn + 1 == m.cols) in void CV:perspectiveTransform(cv::InputArray, cv::OutputArray, cv::InputArray), 
file/Volumes/Linux/builds/master_pack-android/opencv/modules/core/src/matmul.cpp, line 2125

core::perspectiveTransform_10() caught cv::Exception: /Volumes/Linux/builds/master_pack-android/opencv/modules/core/src/matmul.cpp:2125: 
error: (-215) scn + 1 == m.cols in function void CV:perspectiveTransform(cv::InputArray, cv::

Am using

private final Mat firstCorners = new Mat(4,1, CvType.CV_32FC2)

private final Mat secondCorners = new Mat(4,1, CvType.CV_32FC2)

final Mat homography = Calib3d.findHomography(first, second, Calib3d.RANSAC, 1)

Core.perspectiveTransform(firstCorners, secondCorners, homography)

I used Cv_32FC2 as posted in the above thread answer but still am getting the same error.

Any help on this.