XML Feeds

.

[jitter] problem with jit.findbounds

Stuart Binns spbinns at hotmail.com
Sat Nov 3 12:09:53 MDT 2007


Hi everyone, 

i am using jit.findbounds to try and simply find the boundaries of an object in a jpg image. I have made the example shown in the html  reference for jit.findbounds, but still no success. Any suggestions, 

regards,

Here is my copy of the html refernce...

max v2;
#N vpatcher 46 136 954 938;
#P user jit.pwindow 472 257 322 242 1 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P number 120 713 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 81 713 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 42 713 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 42 682 89 196617 unpack 0 0 0;
#P newex 526 229 111 196617 jit.lcd 4 char 320 240;
#P newex 103 649 71 196617 s colorsearch;
#P newex 103 599 79 196617 prepend max 0.;
#P newex 220 597 76 196617 prepend min 0.;
#P newex 221 574 107 196617 vexpr ($i1-10)/255.;
#P newex 103 574 108 196617 vexpr ($i1+10)/255.;
#P user swatch 103 473 155 56;
#P message 526 201 173 196617 clear \, framerect \$1 \$2 \$3 \$4 \, bang;
#P newex 526 174 75 196617 pack 0 0 0 0;
#P newex 526 150 95 196617 jit.findbounds;
#P newex 526 102 71 196617 r colorsearch;
#P message 163 79 30 196617 read;
#P newex 87 115 105 196617 jit.qt.movie 320 240;
#P newex 87 77 46 196617 metro 2;
#P toggle 87 48 15 0;
#P user suckah 77 165 320 239;
#P user jit.pwindow 78 162 322 242 0 1 0 0 1 0;
#P fasten 10 0 17 0 108 541 47 541;
#P connect 17 0 18 0;
#P connect 4 0 0 0;
#P connect 17 1 19 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 5 0 4 0;
#P connect 1 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 14 0;
#P connect 14 0 15 0;
#P connect 13 0 15 0;
#P connect 17 2 20 0;
#P connect 12 0 13 0;
#P connect 10 0 12 0;
#P connect 16 0 21 0;
#P fasten 4 0 7 0 92 141 531 141;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 16 0;
#P connect 7 1 8 2;
#P pop;



Regards, 

Stuart


More information about the jitter mailing list