# Adding matrix to a list of matrix, causes a size changing

Hi,

I would like to add a matrix to a list of matrix, but what I get is that the first matrix added well(1920x1080), but from the second matrix the size is changed to 1920x1080.

This is part of my code:

                List<Mat> M = new ArrayList<Mat>();
Mat mainMat = new Mat();