Ask Your Question

Revision history [back]

Mat object uses reference counting approach, Mat has reference to real image data. When you select submat of another Mat object new Mat will share the same frame data. When you read image that is grater then destination Mat data is relocated. In your case sm object reallocates it buffer after image reading and does not reference to part of original frame.