OpenCV - Creating an Array of Mat Objects

前端 未结 2 1492
無奈伤痛
無奈伤痛 2021-01-01 05:40

I would have thought this is trivial, but I\'m having some trouble with it.

I want to read a video file into memory and store it in an array. I want the array to be o

2条回答
  •  孤独总比滥情好
    2021-01-01 06:37

    But is there actually a way of creating Mat arrays? I really don't see other options in my case but trying to access an item in the array considers the array as a single Mat and thinks I'm trying to access its data.

    Edit: Found a workaround using a pointer:

    Mat* array = new Mat[arraySize];
    

提交回复
热议问题