文件名称:mouse_event
介绍说明--下载内容均来自于网络,请自行研究使用
This program creates a rectangle when you click the mouse on the window, and stretches the rectangle until you release the mouse. This requires the creation of a mouse callback. For the main function we use a while loop that keeps redrawing each box as its created. Boxes are drawn and windows are created as learned in previous tutorials. The main new thing is the creation of the mouse callback. This is initialized with cvSetMouseCallback. The callback itself is an arbitrarily named function of the form my_mouse_callback( int event, int x, int y, an int flags, void* param) where x and y are the mouse position and event is a code representing what mouse action occured
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mouse_event\1.jpg
...........\halima.JPG
...........\main.cpp
...........\main.o
...........\Makefile.win
...........\mouse_event.dev
...........\mouse_event.exe
...........\rectangle.doc
mouse_event
...........\halima.JPG
...........\main.cpp
...........\main.o
...........\Makefile.win
...........\mouse_event.dev
...........\mouse_event.exe
...........\rectangle.doc
mouse_event