Ask Your Question

andri's profile - activity

2013-03-15 02:19:27 -0600 commented answer OpenCV 2.4.4 on Mac OS X with Eclipse

Hi, I also had problem with you. Need jar file for my eclipse project. But when i try to built the opencv from git. It got error, "library not found for lavcodec". Do you encounter this problem before?

2013-03-06 02:47:19 -0600 commented answer Converting from JavaCV

I already import org.opencv.core.*, org.opencv.imgproc.Imgproc, org.opencv.imgproc.Moments, but there is no method called "moments" ?

2013-03-05 20:47:17 -0600 asked a question Converting from JavaCV

So, I was using javaCV before. This is the code i use for color tracking

    CvMoments moments = new CvMoments();        
    cvMoments(imgThreshold, moments, 1);

    double momX10 = cvGetSpatialMoment(moments, 1, 0);
    double momY01 = cvGetSpatialMoment(moments, 0, 1);
    double area = cvGetCentralMoment(moments, 0, 0);

When I use OpenCV 2.4.4, I convert the code into this

    Moments moments = new Moments();
    moments(imgThreshold,true);

but its not working.

And what is the replacement of cvGetSpatialMoment?