1 | initial version |
The mousehandlers assigned to a namedWindow only work correct as long as the window is not larger than your main monitor. To solve your problem there are two possible solutions.
In order to split a givin image easily use:
Mat window = image( Rect(xWindow,yWindow,widthWindow,heigthWindow) );