Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the proble is here:

private Mat rectOut = new Mat();

that is an empty Mat, with no pixels, of size (0,0)

if you want to draw something, you need to allocate pixels:

private Mat rectOut = new Mat(480, 640, CvType.CV_8UC3, Scalar.all(0));