#N canvas 248 90 1192 685 10; #X obj 396 -37 gemhead; #X obj 218 457 pix_texture; #X obj 28 132 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577 0; #N canvas 189 149 454 304 gemwin 0; #X obj 130 218 gemwin; #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; #X obj 112 15 loadbang; #X msg 62 93 reset; #X obj 49 135 outlet; #X msg 107 89 dimen 320 240; #X msg 202 89 frame 5; #X obj 107 51 t b b b; #X connect 0 0 5 0; #X connect 1 0 2 0; #X connect 3 0 2 0; #X connect 4 0 2 0; #X connect 5 0 3 0; #X connect 5 1 4 0; #X connect 5 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 251 138 frame 15; #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 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 create; #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 0 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 552 478 pdelaunay 1 50; #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 208 534 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 connect 0 0 16 0; #X connect 1 0 79 0; #X connect 3 0 4 0; #X connect 4 0 3 0; #X connect 7 0 14 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 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 77 0; #X connect 54 0 56 0; #X connect 54 0 76 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 51 0; #X connect 70 0 69 0; #X connect 75 0 34 0; #X connect 79 0 78 0; #X connect 80 0 81 0; #X connect 81 0 16 0; #X connect 82 0 16 0; #X connect 83 0 16 0;