OpenCV Android an array/vector of Mat

asked 2015-11-25 11:50:44 -0500

phoenix37 gravatar image

updated 2015-11-25 12:09:22 -0500


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?

edit retag flag offensive close merge delete


Thanks but still I do not understand. Could you explain more or show me an example?

phoenix37 gravatar imagephoenix37 ( 2015-11-26 08:43:48 -0500 )edit