Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should check if r1 continuous (call r1.isContinuous()). Ad if it is, then get pointer to the beginning of the data: r = r1.ptr<double>(0), same for the g1 and b1.