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.