From b7b82f9bd8cf4abe4eefd02e692aa68f10a192c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Fri, 18 Sep 2009 16:28:27 +0000 Subject: some improvements in the help patches svn path=/trunk/externals/pix_opencv/; revision=12395 --- pix_opencv_lk-help.pd | 395 +++++++++++++++++++++++++++----------------------- 1 file changed, 217 insertions(+), 178 deletions(-) (limited to 'pix_opencv_lk-help.pd') diff --git a/pix_opencv_lk-help.pd b/pix_opencv_lk-help.pd index 63b885b..e95231f 100644 --- a/pix_opencv_lk-help.pd +++ b/pix_opencv_lk-help.pd @@ -1,18 +1,136 @@ -#N canvas 248 90 1192 685 10; -#X obj 396 -37 gemhead; -#X obj 212 457 pix_texture; -#X obj 28 132 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577 +#N canvas 378 68 1192 685 10; +#X obj 140 -12 cnv 15 600 450 empty empty empty 20 12 0 14 -24198 -66577 0; -#N canvas 189 149 454 304 gemwin 0; -#X obj 130 218 gemwin; +#X floatatom 288 328 5 0 0 0 - - -; +#X text 323 327 window size; +#X obj 353 70 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X msg 268 68 nightmode \$1; +#X text 372 71 set nightmode; +#X msg 263 42 quality \$1; +#X floatatom 338 43 5 0 0 0 - - -; +#X floatatom 346 18 5 0 0 0 - - -; +#X msg 249 17 mindistance \$1; +#X text 387 16 set distance ( default 10 ); +#X msg 242 -11 init; +#X text 311 -11 init point detections; +#X floatatom 431 43 5 0 0 0 - - -; +#X obj 376 41 / 1000; +#X msg 294 136 mark \$1 \$2; +#X msg 308 157 delete \$1; +#X text 502 157 delete a marker; +#X msg 316 177 clear; +#X text 364 178 delete all markers; +#X msg 322 197 maxmove \$1; +#X text 436 197 max movement of a marker ( default 5 pisels ); +#X floatatom 398 199 5 0 0 0 - - -; +#X text 563 42 set quality ( default 100 ); +#X msg 471 41 100; +#X obj 504 41 loadbang; +#X obj 285 383 unpack f f; +#X floatatom 286 408 5 0 0 0 - - -; +#X floatatom 344 409 5 0 0 0 - - -; +#X text 287 424 X; +#X text 342 425 Y; +#X obj 284 357 route 1 2 3 4 5 6 7 8 9 10; +#X text 450 306 position of each marked point; +#X obj 178 346 pix_opencv_lk; +#X obj 752 -69 gemmouse; +#X obj 808 38 f; +#X obj 778 37 f; +#X obj 822 9 t b b; +#X obj 775 82 pack f f; +#X text 373 137 mark x y : mark a point to track ( max points : 10 +); +#X obj 798 -41 route 1; +#X msg 819 -16 bang; +#X msg 277 91 mark all; +#X msg 287 112 mark none; +#X text 340 92 mark all points; +#X text 357 113 reset all markers; +#X text 422 241 make a delaunay with all points; +#X msg 342 241 delaunay on; +#X msg 350 261 delaunay off; +#X text 451 274 make a delaunay with point 1 and a tolerance of 50 +( all points which color is in that range will be included in the delaunay) +; +#X msg 333 217 ftolerance \$1; +#X floatatom 425 217 5 0 0 0 - - -; +#X text 465 217 frame tolerance for point identification ( default +: 5 ); +#X text -230 -324 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org +) and Yves Degoyon ( ydegoyon@gmail.com ); +#X text -231 -336 Corner points detection based on Shi and Tomasi; +#X text -231 -348 pix_opencv_lk : Lukas-Kanade corner points tracking +; +#X obj 376 158 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -262144 +-1 -1 0; +#X floatatom 769 59 5 0 0 0 - - -; +#X floatatom 822 62 5 0 0 0 - - -; +#X msg 350 283 pdelaunay 1 500; +#X obj 357 -411 gemhead; +#X obj 369 -384 bng 25 250 50 0 load empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 426 -209 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 +-1 -1; +#X floatatom 408 -244 5 0 10000 1 frame# - -; +#X obj 369 -355 openpanel; +#X msg 369 -335 open \$1; +#X obj 357 -226 pix_film; +#X msg 375 -292 auto \$1; +#X obj 375 -310 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 +1; +#X msg 470 -309 colorspace RGBA; +#X msg 575 -309 colorspace RGB; +#X msg 679 -309 colorspace Grey; +#X obj 470 -337 loadbang; +#N canvas 0 0 450 300 vswitch 0; +#X obj 144 263 outlet; +#X obj 36 26 inlet; +#X obj 260 29 inlet; +#X obj 36 133 spigot; +#X obj 260 141 spigot; +#X obj 119 64 loadbang; +#X msg 83 93 0; +#X msg 113 93 1; +#X msg 296 104 0; +#X msg 326 104 1; +#X obj 399 34 inlet; +#X obj 399 67 select 0; +#X connect 1 0 3 0; +#X connect 2 0 4 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 7 0; +#X connect 5 0 8 0; +#X connect 6 0 3 1; +#X connect 7 0 3 1; +#X connect 8 0 4 1; +#X connect 9 0 4 1; +#X connect 10 0 11 0; +#X connect 11 0 7 0; +#X connect 11 0 8 0; +#X connect 11 1 9 0; +#X connect 11 1 6 0; +#X restore 175 -152 pd vswitch; +#X obj 247 -156 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 120 -228 pix_video; +#X obj 120 -416 gemhead; +#X msg 159 -303 device 0; +#X msg 168 -272 driver 1; +#X msg 145 -357 dialog; +#X msg 150 -327 device /dev/dv1394-0; +#X obj 178 469 pix_texture; +#X obj -231 -425 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 +-66577 0; +#N canvas 0 22 454 304 gemwin 0; #X obj 67 89 outlet; #X obj 67 10 inlet; #X obj 67 41 route create; #X msg 67 70 set destroy; #X msg 182 68 set create; -#X msg 129 165 create \, 1; -#X msg 205 166 destroy; -#N canvas 87 154 363 340 Gem.init 0; +#N canvas 87 154 247 179 Gem.init 0; #X obj 112 15 loadbang; #X msg 62 93 reset; #X obj 49 135 outlet; @@ -23,178 +141,99 @@ #X connect 3 0 2 0; #X connect 4 0 3 0; #X connect 4 2 1 0; -#X restore 289 80 pd Gem.init; -#X obj 128 109 t b b b; -#X msg 156 138 dimen 320 240; -#X msg 250 137 frame 5; +#X restore 268 69 pd Gem.init; +#X obj 162 241 gemwin; +#X msg 161 188 create \, 1; +#X msg 237 189 destroy; +#X msg 188 161 dimen 320 240; +#X obj 164 126 t b b b; +#X msg 279 161 frame 5; +#X connect 1 0 2 0; #X connect 2 0 3 0; -#X connect 3 0 4 0; -#X connect 3 0 9 0; -#X connect 3 1 5 0; -#X connect 3 1 7 0; -#X connect 4 0 1 0; -#X connect 5 0 1 0; -#X connect 6 0 0 0; -#X connect 7 0 0 0; +#X connect 2 0 10 0; +#X connect 2 1 4 0; +#X connect 2 1 8 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 7 0 6 0; +#X connect 8 0 6 0; #X connect 9 0 6 0; -#X connect 9 1 10 0; -#X connect 9 2 11 0; -#X connect 10 0 0 0; -#X connect 11 0 0 0; -#X restore 35 178 pd gemwin; -#X msg 35 157 destroy; -#X text 36 136 Create window and render; -#X obj 340 180 cnv 15 600 450 empty empty empty 20 12 0 14 -24198 -66577 -0; -#X obj 511 -66 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 524 128 unpack 0 0 0; -#X floatatom 514 151 5 0 0 3 length - -; -#X floatatom 563 151 5 0 0 3 width - -; -#X floatatom 613 151 5 0 0 3 height - -; -#X obj 568 109 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 --1 -1; -#X floatatom 560 92 5 0 10000 1 frame# - -; -#X obj 511 -37 openpanel; -#X msg 511 -17 open \$1; -#X obj 499 92 pix_film; -#X msg 517 26 auto \$1; -#X obj 517 8 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 -; -#X floatatom 488 520 5 0 0 0 - - -; -#X text 523 519 window size; -#X obj 553 262 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X msg 468 260 nightmode \$1; -#X text 572 263 set nightmode; -#X msg 463 234 quality \$1; -#X floatatom 538 235 5 0 0 0 - - -; -#X floatatom 546 210 5 0 0 0 - - -; -#X msg 449 209 mindistance \$1; -#X text 587 208 set distance ( default 10 ); -#X msg 442 181 init; -#X text 511 181 init point detections; -#X floatatom 631 235 5 0 0 0 - - -; -#X obj 576 233 / 1000; -#X msg 494 328 mark \$1 \$2; -#X msg 508 349 delete \$1; -#X text 702 349 delete a marker; -#X msg 516 369 clear; -#X text 564 370 delete all markers; -#X msg 522 389 maxmove \$1; -#X text 636 389 max movement of a marker ( default 5 pisels ); -#X floatatom 598 391 5 0 0 0 - - -; -#X text 763 234 set quality ( default 100 ); -#X msg 671 233 100; -#X obj 704 233 loadbang; -#X obj 485 575 unpack f f; -#X floatatom 486 600 5 0 0 0 - - -; -#X floatatom 544 601 5 0 0 0 - - -; -#X text 487 616 X; -#X text 542 617 Y; -#X obj 484 549 route 1 2 3 4 5 6 7 8 9 10; -#X text 650 498 position of each marked point; -#X obj 378 538 pix_opencv_lk; -#X obj 952 123 gemmouse; -#X obj 1008 230 f; -#X obj 978 229 f; -#X obj 1022 201 t b b; -#X obj 975 274 pack f f; -#X text 573 329 mark x y : mark a point to track ( max points : 10 -); -#X obj 998 151 route 1; -#X msg 1019 176 bang; -#X msg 477 283 mark all; -#X msg 487 304 mark none; -#X text 540 284 mark all points; -#X text 557 305 reset all markers; -#X text 622 433 make a delaunay with all points; -#X msg 542 433 delaunay on; -#X msg 550 453 delaunay off; -#X text 651 466 make a delaunay with point 1 and a tolerance of 50 -( all points which color is in that range will be included in the delaunay) -; -#X msg 533 409 ftolerance \$1; -#X floatatom 625 409 5 0 0 0 - - -; -#X text 665 409 frame tolerance for point identification ( default -: 5 ); -#X text 44 11 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org -) and Yves Degoyon ( ydegoyon@gmail.com ); -#X text 43 -1 Corner points detection based on Shi and Tomasi; -#X text 43 -13 pix_opencv_lk : Lukas-Kanade corner points tracking -; -#X obj 576 350 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -262144 --1 -1 0; -#X floatatom 969 251 5 0 0 0 - - -; -#X floatatom 1022 254 5 0 0 0 - - -; -#X obj 212 518 rectangle 4 3; -#X obj 212 489 pix_resize 320 240; -#X obj 588 13 loadbang; -#X msg 588 38 colorspace RGBA; -#X msg 692 38 colorspace RGB; -#X msg 651 12 colorspace Grey; -#X msg 550 475 pdelaunay 1 500; -#X connect 0 0 16 0; -#X connect 1 0 78 0; +#X connect 10 0 7 0; +#X connect 10 1 9 0; +#X connect 10 2 11 0; +#X connect 11 0 6 0; +#X restore -224 -379 pd gemwin; +#X msg -223 -401 create; +#X text -223 -422 Create window and render; +#X obj 178 488 rectangle 5.3 4; +#X obj 178 -78 pix_resize 320 240; +#X connect 1 0 33 1; #X connect 3 0 4 0; -#X connect 4 0 3 0; -#X connect 7 0 14 0; +#X connect 4 0 33 0; +#X connect 6 0 33 0; +#X connect 7 0 6 0; #X connect 8 0 9 0; -#X connect 8 1 10 0; -#X connect 8 2 11 0; -#X connect 12 0 13 0; -#X connect 13 0 16 1; -#X connect 14 0 15 0; -#X connect 15 0 16 0; -#X connect 16 0 51 0; -#X connect 16 1 8 0; -#X connect 16 2 12 0; -#X connect 17 0 16 0; -#X connect 18 0 17 0; -#X connect 19 0 51 1; -#X connect 21 0 22 0; -#X connect 22 0 51 0; -#X connect 24 0 51 0; +#X connect 9 0 33 0; +#X connect 11 0 33 0; +#X connect 13 0 14 0; +#X connect 14 0 7 0; +#X connect 15 0 33 0; +#X connect 16 0 33 0; +#X connect 18 0 33 0; +#X connect 20 0 33 0; +#X connect 22 0 20 0; +#X connect 24 0 13 0; #X connect 25 0 24 0; #X connect 26 0 27 0; -#X connect 27 0 51 0; -#X connect 29 0 51 0; -#X connect 31 0 32 0; -#X connect 32 0 25 0; -#X connect 33 0 51 0; -#X connect 34 0 51 0; -#X connect 36 0 51 0; -#X connect 38 0 51 0; -#X connect 40 0 38 0; -#X connect 42 0 31 0; -#X connect 43 0 42 0; -#X connect 44 0 45 0; -#X connect 44 1 46 0; -#X connect 49 0 44 0; -#X connect 51 0 1 0; -#X connect 51 1 49 0; -#X connect 52 0 54 1; -#X connect 52 1 53 1; -#X connect 52 2 58 0; -#X connect 53 0 56 1; -#X connect 53 0 76 0; -#X connect 54 0 56 0; -#X connect 54 0 75 0; -#X connect 55 0 54 0; -#X connect 55 1 53 0; -#X connect 56 0 33 0; -#X connect 58 0 59 0; -#X connect 59 0 55 0; -#X connect 60 0 51 0; -#X connect 61 0 51 0; -#X connect 65 0 51 0; -#X connect 66 0 51 0; -#X connect 68 0 51 0; -#X connect 69 0 68 0; -#X connect 74 0 34 0; -#X connect 78 0 77 0; -#X connect 79 0 80 0; -#X connect 80 0 16 0; -#X connect 81 0 16 0; -#X connect 82 0 16 0; -#X connect 83 0 51 0; +#X connect 26 1 28 0; +#X connect 31 0 26 0; +#X connect 33 0 81 0; +#X connect 33 1 31 0; +#X connect 34 0 36 1; +#X connect 34 1 35 1; +#X connect 34 2 40 0; +#X connect 35 0 38 1; +#X connect 35 0 58 0; +#X connect 36 0 38 0; +#X connect 36 0 57 0; +#X connect 37 0 36 0; +#X connect 37 1 35 0; +#X connect 38 0 15 0; +#X connect 40 0 41 0; +#X connect 41 0 37 0; +#X connect 42 0 33 0; +#X connect 43 0 33 0; +#X connect 47 0 33 0; +#X connect 48 0 33 0; +#X connect 50 0 33 0; +#X connect 51 0 50 0; +#X connect 56 0 16 0; +#X connect 59 0 33 0; +#X connect 60 0 66 0; +#X connect 61 0 64 0; +#X connect 62 0 63 0; +#X connect 63 0 66 1; +#X connect 64 0 65 0; +#X connect 65 0 66 0; +#X connect 66 0 73 1; +#X connect 66 2 62 0; +#X connect 67 0 66 0; +#X connect 68 0 67 0; +#X connect 69 0 66 0; +#X connect 69 0 75 0; +#X connect 70 0 66 0; +#X connect 71 0 66 0; +#X connect 72 0 69 0; +#X connect 72 0 68 0; +#X connect 73 0 87 0; +#X connect 74 0 73 2; +#X connect 75 0 73 0; +#X connect 76 0 75 0; +#X connect 77 0 75 0; +#X connect 78 0 75 0; +#X connect 79 0 75 0; +#X connect 80 0 75 0; +#X connect 81 0 86 0; +#X connect 83 0 84 0; +#X connect 84 0 83 0; +#X connect 87 0 33 0; -- cgit v1.2.1