2 #include <visp/vpDisplayGDI.h>
3 #include <visp/vpDisplayX.h>
4 #include <visp/vpDot2.h>
5 #include <visp/vpImageIo.h>
14 #if defined(VISP_HAVE_X11)
16 #elif defined(VISP_HAVE_GDI)
19 std::cout <<
"No image viewer is available..." << std::endl;
31 std::cout <<
"Blob characteristics: " << std::endl;
32 std::cout <<
" width : " << blob.
getWidth() << std::endl;
33 std::cout <<
" height: " << blob.
getHeight() << std::endl;
34 #if VISP_VERSION_INT > VP_VERSION_INT(2,7,0)
35 std::cout <<
" area: " << blob.
getArea() << std::endl;
37 std::cout <<
" gray level min: " << blob.
getGrayLevelMin() << std::endl;
38 std::cout <<
" gray level max: " << blob.
getGrayLevelMax() << std::endl;
47 #if VISP_VERSION_INT > VP_VERSION_INT(2,7,0)
57 std::list<vpDot2> blob_list;
63 blob_list.push_back(blob);
65 std::cout <<
"Number of auto detected blob: " << blob_list.size() << std::endl;
66 std::cout <<
"A click to exit..." << std::endl;
71 for(std::list<vpDot2>::iterator it=blob_list.begin(); it != blob_list.end(); ++it) {
72 (*it).setGraphics(
true);
73 (*it).setGraphicsThickness(3);