*sorry if my english is bad -.-"
Greetings,
I'm a student and only have a little experience with both OpenCV or Java. I try to make a program that can stitch two images into one panorama images using SIFT and RANSAC. I also downloaded OpenCV Library 2.4.6 version.
But when i run my program, i got the Null Pointer Exception in:
sift1.detect(imgA, keypoint1);
Here's part of my program:
fileA = getIntent().getStringExtra("fileA");
fileB = getIntent().getStringExtra("fileB");
imgA = Highgui.imread(fileA);
Log.i("IMREAD", fileA+" berhasil");
imgB = Highgui.imread(fileB);
Log.i("IMREAD", fileB+" berhasil");
FeatureDetector sift1 = FeatureDetector.create(3);
sift1.detect(imgA, keypoint1);
Log.d("keypoint", "jumlah keypoint 1 = " + keypoint1.size());
FeatureDetector sift2 = FeatureDetector.create(3);
sift2.detect(imgB, keypoint2);
Log.d("keypoint", "jumlah keypoint 2 = " + keypoint2.size());
Thank you :)