techsharad / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Null pointer error(native method ) #310

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.just happened when start run the program

What is the expected output? What do you see instead?
Output should an integer. Run error happens.

What version of the product are you using? On what operating system?
opencv 2.4.3. Win7

Please provide any additional information below.
my sample code  as follows:

    public static CvMat featureDetect(IplImage image) {
        KeyPoint keyPts = new KeyPoint();
        FastFeatureDetector featureDetector = new FastFeatureDetector();
        featureDetector.detect(image, keyPts, null);
        DescriptorExtractor extractor = new DescriptorExtractor();      
        CvMat descriptors = cvCreateMat(keyPts.capacity(), extractor.descriptorSize(), CV_32F);
        extractor.compute(image, keyPts, descriptors);
        return descriptors;

    }

}

Original issue reported on code.google.com by tracerou...@gmail.com on 24 Apr 2013 at 10:42

GoogleCodeExporter commented 9 years ago
Can I see the stacktrace of the exception?

And do you also get the same problem with JavaCV 0.5?

Original comment by samuel.a...@gmail.com on 27 Apr 2013 at 5:47

GoogleCodeExporter commented 9 years ago
Given the lack of feedback, I'm assuming this has been fixed with newer 
versions of JavaCV, but please let me know if it still doesn't work, thanks!

Original comment by samuel.a...@gmail.com on 16 Sep 2013 at 11:22