Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

hi there ;)

here, you are passing the image, that gets drawn to:

setMouseCallback(name, my_mouse_callback, &image);

see, it's before the loop, when you call image.clone(), that already has rectangles in it.

i think, you want:

setMouseCallback(name, my_mouse_callback, &temp);

instead