Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using a 2D vector like this is not as efficient as using a single vector<uchar> to hold all of the pixels, where the index is equal to size_t index = y*x_resolution+x; Here y and x are gotten from for loop iteration.