我是 Java 开发人员。我的目标是使用 javaCV 检测图像关键点
这是我的代码:
final CvMat image1 = cvLoadImageM("im1.png" , 0);
final CvMat image2 = cvLoadImageM("im2.png", 0);
SIFT sift = new SIFT();
FeatureDetector featureDetector =sift.getFeatureDetector();
KeyPoint keypoint1 = new KeyPoint();
KeyPoint keypoint2 = new KeyPoint() ;
featureDetector.detect(image1, keypoint1 , null);
featureDetector.detect(image2,keypoint2, null);
但是当我运行这段代码时,我遇到了访问冲突异常
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7795e3be, pid=128, tid=2348
JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
Java VM: Java HotSpot(TM) Client VM (24.45-b08 mixed mode, sharing windows-x86 )
Problematic frame:
C [ntdll.dll+0x2e3be]
我看不出问题出在哪里?