Ask Your Question

Revision history [back]

You can directly access data at the address Mat::datastart

You should read that : http://docs.opencv.org/modules/core/doc/basic_structures.html?highlight=datastart#mat

For an image, data is stored row by row. You should also consider using Mat::at<type>(y,x).