Ask Your Question

rrobsonm's profile - activity

2016-10-25 13:20:45 -0600 received badge  Taxonomist
2014-05-05 09:20:19 -0600 commented question How to pass Mat array between two android activities

How do you solve a problem?

2014-01-11 12:01:04 -0600 received badge  Editor (source)
2014-01-11 12:00:10 -0600 asked a question Add constant to each element of ListOfPoints

I find contours only on part of frame(only below horizon line) . I want have real coordinates of points after i use MatOfPoint.toList(); function. Now i have this code:

Iterator<MatOfPoint> itr = mContours.iterator(); 
    while(itr.hasNext()){

        MatOfPoint tmp = itr.next();
        List<Point> listOfPoints = tmp.toList();            

        Iterator<Point> iterator = listOfPoints.iterator();         
        while(iterator.hasNext()){
            Point p = iterator.next();
            p.y=p.y+CONSTANT;      
        }           
    }

But it is very slow code. I want to do it in faster way. How?

2013-12-23 17:04:40 -0600 asked a question Imgproc.GaussianBlur application stopped

Hello

I'm newbie OCV and android developer. I want use Imgproc.GaussianBlur filter in my app. When i use it application send "application stopped". I only add 3 lines to "OpenCV Tutorial 3 - Camera Control":

public Mat onCameraFrame(CvCameraViewFrame inputFrame) {

    Mat mat = inputFrame.gray();
    org.opencv.core.Size s = mat.size();
    Imgproc.GaussianBlur(mat, mat, s, 2);
    return inputFrame.rgba();
}

What could be wrong? I have Lenovo A820 Android 4.1.2 and tried it on OpenCV 2.4.4,2.4.5 and 2.4.6.