|PARP Research Group||Universidad de Murcia|
examples/canvasInteract/canvasInteract.cpp File Reference
Example application showing how to interact with a QVImageCanvas object.
This example lets the user to play with the ROI selector of the QVImageCanvas widget, marking the selected region in the output image with a dark square in the image canvas. It also allows the program to get a list of points from user input clicks. In both cases the user must select the adequate buttons from the bottom row of the QVImageCanvas widget. Finally, this example also shows how to perform custom drawings in a QVImageCanvas by subclassing it and reimplementing the QVImageCanvas custom_viewer() method.
Once installed the QVision, compile using the qmake and make tools:
# qmake; make
Execute the application with the following line:
./canvasInteract --URL=<source video identifier string>
See section QVMPlayerURLFormat for further info about the format and types of source video identifier strings.
Definition in file canvasInteract.cpp.