I am trying to create an array of Mat
objects to store images and am getting warnings for using anything other than a statically typed number such as 10
int numberOfRects = boundRect.size();
Mat image_array[numberOfRects];
When I try this code I get an error stating Variable length array of non-POD element type 'cv::Mat'
Same goes for this code:
Mat image_array[boundRect.size()];
How can I create an array of Mats based on the size of boundRect
?