Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Android an array/vector of Mat

Hi,

I wrote a program in C ++ using OpenCV. Now I would like to move it on Android. I have a problem with this record.

In C++:

vector<Mat> tableRectangles ;
vector<Rect> limitRectangles ;
tableRectangles .clear();
        for(unsigned int i = 0; i< limitRectangles.size(); i++ )
        {
            tableRectangles.push_back((*output)(limitRectangles [i]));
        }

I'd like to just get in Java / Android.

    List<MatOfRect> limitRectangles = new ArrayList<MatOfRect>();
    List<MatOfRect> tableRectangles = new ArrayList<MatOfRect>(); 
    for(int i = 0; i<limitRectangles.height; i++ ){
          ???
    }

At the moment I have only so much. Can anyone help?

OpenCV Android an array/vector of Mat

Hi,

I wrote a program in C ++ using OpenCV. Now I would like to move it on Android. I have a problem with this record.

In C++:

vector<Mat> tableRectangles ;
vector<Rect> limitRectangles ;
tableRectangles .clear();
        for(unsigned int i = 0; i< limitRectangles.size(); i++ )
        {
            tableRectangles.push_back((*output)(limitRectangles [i]));
        }

I'd like to just get in Java / Android.

    List<MatOfRect> limitRectangles = new ArrayList<MatOfRect>();
    List<MatOfRect> tableRectangles = new ArrayList<MatOfRect>(); 
    for(int i = 0; i<limitRectangles.height; i++ ){
          ???
    }

At the moment I have only so much. Can anyone help?