#N canvas 539 57 632 642 10;
#X text 232 375 must be a 2x2 symmetric matrix.;
#X obj 0 0 doc_h;
#X obj 3 270 doc_c 0;
#X obj 3 310 doc_i 1;
#X obj 3 407 doc_o 2;
#X obj 14 437 doc_oo 0;
#X obj 14 524 doc_oo 1;
#X obj 14 340 doc_ii 0;
#X obj 0 650 doc_f;
#X obj 97 340 doc_m i0 grid;
#X obj 97 437 doc_m o0 grid;
#X obj 97 524 doc_m o1 grid;
#X text 232 340 inlet 0: variance matrix (aka covariance matrix) \,
from [#moment 2] or compatible.;
#X obj 3 630 doc_also;
#X obj 103 630 #moment;
#X obj 68 205 #moment_polar;
#X text 515 52 needs OpenCV;
#X obj 68 116 #redim (2 2);
#X obj 143 225 display;
#X obj 68 246 display;
#X obj 69 94 #pack 4;
#X obj 82 62 nbx 5 14 -1e+37 1e+37 0 1 empty empty yx 48 8 0 8 -262144
-1 -1 78 256;
#X obj 69 46 nbx 5 14 -1e+37 1e+37 0 1 empty empty yy 48 8 0 8 -262144
-1 -1 -25 256;
#X obj 108 78 nbx 5 14 -1e+37 1e+37 0 1 empty empty xx 48 8 0 8 -262144
-1 -1 36 256;
#X obj 74 136 display;
#X text 236 107 finds the angle and radiuses associated with a variance
matrix (aka covariance matrix). those matrices are output by [#moment
2] and by [#labelling 0].;
#X text 122 245 angle in centidegrees. divide by 100 to get degrees.
;
#X msg 168 170 3 3 # 1 2 2 3 4 6 9 11 11;
#X text 153 195 distances in the same units as the inputs (pixels or
whatever);
#X text 232 524 outlet 1: radiuses (from biggest to smallest) as float
grid of size (2).;
#X text 232 559 Actually \, if you input a N by N matrix instead \,
it does give correct results here \, as a float grid of size (N) \,
but then gives an error message trying to compute the angle (for outlet
0) on too many values.;
#X text 232 437 outlet 0: angle (only makes sense with a 2x2 matrix)
as float \, in centidegrees. Note that although those values could
be ranging from -18000 to 18000 \, there is no difference between values
18000 apart (180 degrees apart) because they don't represent the direction
of an arrow \, they represent the direction of a plain line.;
#X connect 9 1 12 0;
#X connect 9 1 0 0;
#X connect 10 1 31 0;
#X connect 11 1 29 0;
#X connect 11 1 30 0;
#X connect 13 1 14 0;
#X connect 15 0 19 0;
#X connect 15 1 18 0;
#X connect 17 0 15 0;
#X connect 17 0 24 0;
#X connect 20 0 17 0;
#X connect 21 0 20 1;
#X connect 21 0 20 2;
#X connect 22 0 20 0;
#X connect 23 0 20 3;
#X connect 27 0 15 0;

