aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/#polygon_comparator-help.pd
blob: cdb35df8c3d76922e0384e4748d6d83f12437bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#N canvas 271 133 749 424 10;
#X obj 422 218 #outer + (0 9000);
#X text 430 162 make regular triangle;
#X obj 422 316 #rotate;
#X obj 374 142 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 475 316 * 100;
#X floatatom 475 300 5 0 0 0 - - -;
#X obj 392 161 t b b;
#X obj 422 335 #polygon_comparator;
#X obj 373 161 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 422 275 #t;
#X obj 393 142 metro 1000;
#X text 32 364 BUG: first try doesn't work;
#X text 69 375 please bang twice;
#X msg 556 206 4 2 # 1 1 1 -1 -1 -1 -1 1;
#X obj 597 252 display;
#X obj 422 199 # * 12000;
#X obj 422 180 #for 0 3 1;
#X obj 556 226 # * (100 100);
#X obj 422 256 # + (0 0);
#X obj 422 237 # cos* (100 100);
#X obj 382 367 #fold min;
#X obj 462 367 #fold max;
#X obj 382 386 #export;
#X obj 462 386 #export;
#X obj 557 185 loadbang;
#X obj 382 405 nbx 8 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 9
-262144 -1 -1 0 256;
#X obj 462 405 nbx 8 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 9
-262144 -1 -1 0 256;
#X text 11 66 inlet 1: a 2-D polygon as N by 2 grid;
#X text 11 16 inlet 0: a 2-D polygon as N by 2 grid;
#X text 74 30 or method "precision" for setting the size of the output
grid.;
#X text 73 80 in which the peak represents the amount of similarity
between the two polygons \, and the position of the peak represents
the optimal rotation for maximum overlapping of the polygons. The rotation
origin is assumed to be the centroid (#moment 1);
#X text 25 348 NOTE: requires [#fft];
#X text 8 179 Comparisons are supposed to be invariant to the following
transformation:;
#X text 33 213 translations \, e.g. [# +];
#X text 33 231 rotations \, e.g. [#rotate];
#X text 33 249 scalar scalings \, e.g. [# *] with only one value.;
#X connect 0 0 19 0;
#X connect 2 0 7 0;
#X connect 3 0 10 0;
#X connect 4 0 2 1;
#X connect 5 0 4 0;
#X connect 6 1 16 0;
#X connect 7 0 20 0;
#X connect 7 0 21 0;
#X connect 8 0 6 0;
#X connect 9 0 2 0;
#X connect 10 0 6 0;
#X connect 13 0 17 0;
#X connect 15 0 0 0;
#X connect 16 0 15 0;
#X connect 17 0 14 0;
#X connect 17 0 7 1;
#X connect 18 0 9 0;
#X connect 19 0 18 0;
#X connect 20 0 22 0;
#X connect 21 0 23 0;
#X connect 22 0 25 0;
#X connect 23 0 26 0;
#X connect 24 0 13 0;