diff options
-rw-r--r-- | estrella.jpg | bin | 0 -> 8944 bytes | |||
-rw-r--r-- | estrella.mov | bin | 0 -> 4574449 bytes | |||
-rwxr-xr-x | pdp_opencv_dft-help.pd | 80 |
3 files changed, 47 insertions, 33 deletions
diff --git a/estrella.jpg b/estrella.jpg Binary files differnew file mode 100644 index 0000000..7050991 --- /dev/null +++ b/estrella.jpg diff --git a/estrella.mov b/estrella.mov Binary files differnew file mode 100644 index 0000000..ed21876 --- /dev/null +++ b/estrella.mov diff --git a/pdp_opencv_dft-help.pd b/pdp_opencv_dft-help.pd index e4a86fe..b8550f2 100755 --- a/pdp_opencv_dft-help.pd +++ b/pdp_opencv_dft-help.pd @@ -49,10 +49,6 @@ 1; #X obj 330 -54 loadbang; #X text 267 -123 playing a video file; -#X text 499 -112 ( try chini.jpg ); -#X text 285 -110 ( try chini.mov ); -#X msg 264 65 105; -#X msg 292 65 bang; #X obj 559 -51 s max; #X msg 518 -49 0; #X obj -189 109 cnv 15 880 150 empty empty empty 20 12 0 14 -258113 @@ -61,7 +57,6 @@ #X obj 215 206 pdp_opencv_dft; #X msg -25 178 bang; #X msg 206 175 bang; -#X obj 114 164 metro 1000; #X obj 114 140 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 113 114 loadbang; @@ -71,7 +66,7 @@ ; #X text 322 209 frame so it is just processed when it receives a bang ; -#X obj -187 267 cnv 15 880 180 empty empty empty 20 12 0 14 -4034 -66577 +#X obj -187 267 cnv 15 880 200 empty empty empty 20 12 0 14 -4034 -66577 0; #X obj 1 381 pdp_xv; #X obj 108 331 pdp_hue; @@ -80,7 +75,7 @@ #X obj 36 269 loadbang; #X obj 110 292 pdp_binary ----------------; #X obj -67 292 pdp_binary --------------; -#X floatatom 160 378 5 0 0 0 - - -; +#X floatatom 109 401 5 0 0 0 - - -; #X msg 97 269 60; #X obj -1 343 pdp_mul; #X text 220 390 when it's close to its maximum; @@ -92,7 +87,7 @@ #X text -115 343 multiply dfts -->; #X text 201 377 <- average value of dft(i1) x dft(i2); #X text 221 403 the input image the closest to the pattern; -#N canvas 10 73 450 300 cmax 0; +#N canvas 30 169 449 300 cmax 0; #X obj 70 144 route 1; #X msg 122 144 bang; #X obj 42 70 t f b; @@ -102,6 +97,11 @@ #X obj 56 119 f 0; #X obj 45 44 inlet; #X obj 73 180 outlet; +#X obj 163 52 route 1; +#X msg 218 44 \; ctest color 13 13; +#X obj 339 49 del 100; +#X msg 396 45 \; ctest color 0 0; +#X obj 120 53 inlet; #X connect 0 0 1 0; #X connect 1 0 3 0; #X connect 1 0 6 0; @@ -114,7 +114,21 @@ #X connect 6 0 5 1; #X connect 6 0 8 0; #X connect 7 0 2 0; +#X connect 9 0 10 0; +#X connect 9 0 11 0; +#X connect 11 0 12 0; +#X connect 13 0 9 0; #X restore 109 377 pd cmax; +#X text 285 -110 ( try estrella.mov ); +#X text 499 -111 ( try estrella.jpg ); +#X obj 531 361 cnv 15 100 60 empty ctest empty 20 12 0 14 -262144 -262144 +0; +#X text 377 436 ( fft product average > 5 for the estrella example +); +#X text 454 422 when the ffts are close to the pattern; +#X text 505 449 this test pad should turn red; +#X obj 151 357 > 5; +#X obj 114 164 metro 100; #X connect 1 0 2 0; #X connect 2 0 4 0; #X connect 3 0 4 0; @@ -132,13 +146,13 @@ #X connect 18 0 21 0; #X connect 19 0 32 0; #X connect 20 0 27 0; -#X connect 20 0 52 0; +#X connect 20 0 48 0; #X connect 21 0 19 0; #X connect 22 0 20 0; -#X connect 22 0 49 0; +#X connect 22 0 45 0; #X connect 23 0 19 3; #X connect 26 0 28 0; -#X connect 26 0 51 0; +#X connect 26 0 47 0; #X connect 31 0 20 0; #X connect 32 0 31 0; #X connect 33 0 26 0; @@ -152,25 +166,25 @@ #X connect 41 0 40 0; #X connect 42 0 41 0; #X connect 42 0 35 0; -#X connect 46 0 33 1; -#X connect 47 0 33 0; -#X connect 49 0 48 0; -#X connect 51 0 68 0; -#X connect 52 0 67 0; -#X connect 53 0 51 0; -#X connect 54 0 52 0; -#X connect 55 0 51 0; -#X connect 55 0 52 0; -#X connect 56 0 55 0; -#X connect 57 0 56 0; -#X connect 63 0 64 0; -#X connect 64 0 81 0; -#X connect 65 0 67 6; -#X connect 65 0 68 6; -#X connect 66 0 70 0; -#X connect 67 0 71 1; -#X connect 68 0 71 0; -#X connect 70 0 65 0; -#X connect 71 0 62 0; -#X connect 71 0 63 0; -#X connect 81 0 69 0; +#X connect 45 0 44 0; +#X connect 47 0 63 0; +#X connect 48 0 62 0; +#X connect 49 0 47 0; +#X connect 50 0 48 0; +#X connect 51 0 84 0; +#X connect 52 0 51 0; +#X connect 58 0 59 0; +#X connect 59 0 76 0; +#X connect 59 0 83 0; +#X connect 60 0 62 6; +#X connect 60 0 63 6; +#X connect 61 0 65 0; +#X connect 62 0 66 1; +#X connect 63 0 66 0; +#X connect 65 0 60 0; +#X connect 66 0 57 0; +#X connect 66 0 58 0; +#X connect 76 0 64 0; +#X connect 83 0 76 1; +#X connect 84 0 47 0; +#X connect 84 0 48 0; |