Forums > Jitter

Multiple analysis of a single video stream within Max/MSP/Jitter

May 18, 2006 | 2:17 pm

Good afternoon,

I have a patch that requires multiple instances of the following:

jit.pwindow
suckah

I want these objects to open a video stream from my firewire connected iSight. However, there will be around 5 instances of video analysis, each analysing different aspects of the video feed.

I have set up my video analysis tool and I have attempted to copy and paste it to create these multiple instances. However, it appears that only 1 video feed can be opened at any one point whereas I would like to have the single iSight feed appear in all 5 (for example) jit.pwindows!

Any suggestions here?

Thanks,

MadMaxMSP


May 18, 2006 | 2:23 pm

just connect all the pwindows to a single jit.qt.grab. have you
done the max tutorials?


May 18, 2006 | 5:32 pm

Here is the patch Joshua. A web camera or video feed of some nature is needed. A colour within the jit.pwindow and suckah area can be selected and that colour is tracked. I’m trying to create multiple instances of this within a single patch so that I can track atleast 5 colours and therefore output 10 values (5 x X & Y planes).

Anyone with advice on where to take this? I would have thought simple copies and pastes of the main stucture linked to the original jit.qt.grab but this has not worked so far.

Thanks.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 328 390 22 196617 s Y;
#P newex 182 390 22 196617 s X;
#P message 102 46 32 196617 close;
#P message 136 46 45 196617 settings;
#P message 72 46 29 196617 open;
#P toggle 16 28 15 0;
#P newex 16 73 95 196617 jit.qt.grab 320 240;
#P newex 16 46 51 196617 metro 50;
#P user suckah 19 147 161 121;
#P newex 19 334 85 196617 pak 20 20 20;
#P number 93 316 35 9 0 0 0 3 0 0 0 49 80 132 222 222 222 0 0 0;
#P number 56 316 35 9 0 0 0 3 0 0 0 103 156 58 222 222 222 0 0 0;
#P message 20 296 20 196617 20;
#P message 36 375 50 196617 $1 $2 $3;
#P newex 19 355 27 196617 t b l;
#P number 20 316 35 9 0 0 0 3 0 0 0 169 63 63 222 222 222 0 0 0;
#P newex 20 276 45 196617 loadbang;
#P newex 192 30 45 196617 loadbang;
#P message 192 50 17 196617 1.;
#P flonum 355 74 35 9 0 0 0 3 214 120 0 83 83 83 222 222 222 0 0 0;
#P flonum 210 74 35 9 0 0 0 3 214 120 0 83 83 83 222 222 222 0 0 0;
#P flonum 287 74 35 9 0 0 0 3 214 120 0 83 83 83 222 222 222 0 0 0;
#P message 355 93 69 196617 saturation $1;
#P message 210 93 70 196617 brightness $1;
#P message 287 93 61 196617 contrast $1;
#P newex 189 123 52 196617 jit.brcosa;
#B color 5;
#P newex 318 279 144 196617 if $i1 == -1 then 480 else $i1;
#P newex 177 304 132 196617 if $i1 == -1 then 0 else $i1;
#P newex 318 325 54 196617 clip 0 240;
#P newex 177 325 54 196617 clip 0 320;
#P user jit.fpsgui 92 275 60 196617 0;
#X setrgb 198 111 0 42 42 42 9 9 9 4 4 4;
#P newex 147 416 120 196617 vexpr ($i1 – $i2) / 255.;
#P newex 146 436 74 196617 prepend min 0.;
#P newex 22 416 121 196617 vexpr ($i1 + $i2) / 255.;
#P newex 21 436 78 196617 prepend max 1.;
#P user multiSlider 2 148 13 120 0. 240. 1 2921 15 0 0 2 0 0 1;
#M frgb 180 182 150;
#M brgb 0 0 0;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 19 131 159 12 0. 320. 1 2920 15 0 0 2 0 0 1;
#M frgb 180 182 150;
#M brgb 0 0 0;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user jit.pwindow 18 146 162 122 0 1 0 0 1 0;
#P window setfont "Fixedwidth Serif" 10.;
#P number 318 345 35 10 0 0 0 22 0 0 0 255 227 23 222 222 222 0 0 0;
#P number 177 346 35 10 0 0 0 22 0 0 0 255 227 23 222 222 222 0 0 0;
#P newex 177 278 140 1441802 expr $i1+(($i2-$i1)/2);
#P newex 318 303 173 1441802 expr 239-($i1+(($i2-$i1)/2));
#P number 322 226 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 286 225 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 248 225 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 210 225 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 286 204 48 1441802 unpack;
#P newex 210 204 48 1441802 unpack;
#P window linecount 3;
#P newex 210 155 116 1441802 jit.findbounds @min 0. 0.75 0. 0. @max 1. 1. 0.1 0.1;
#B color 5;
#P fasten 6 0 7 1 327 253 486 253;
#P connect 29 0 26 0;
#P fasten 30 0 28 0 197 67 215 67;
#P fasten 30 0 27 0 197 67 292 67;
#P fasten 30 0 29 0 197 68 360 68;
#P fasten 10 0 13 0 323 383 393 383 393 150 7 150;
#P connect 10 0 48 0;
#P connect 2 1 6 0;
#P connect 20 0 10 0;
#P connect 7 0 20 0;
#P connect 22 0 7 0;
#P fasten 4 0 22 0 253 266 323 266;
#P fasten 5 0 8 1 291 258 312 258;
#P connect 27 0 24 0;
#P connect 2 0 5 0;
#P fasten 0 1 2 0 268 200 291 200;
#P fasten 35 0 15 1 41 415 138 415;
#P fasten 35 0 17 1 41 412 262 412;
#P connect 1 1 4 0;
#P connect 1 0 3 0;
#P connect 0 0 1 0;
#P fasten 16 0 0 0 151 489 378 489 378 153 215 153;
#P fasten 14 0 0 0 26 492 380 492 380 150 215 150;
#P fasten 23 0 11 0 194 160 24 160;
#P fasten 23 0 0 0 194 154 215 154;
#P connect 28 0 25 0;
#P connect 31 0 30 0;
#P fasten 24 0 23 0 292 111 194 111;
#P lcolor 7;
#P fasten 25 0 23 0 215 118 194 118;
#P lcolor 7;
#P fasten 26 0 23 0 360 113 194 113;
#P lcolor 7;
#P fasten 42 0 23 0 21 118 194 118;
#P fasten 9 0 12 0 182 380 396 380 396 147 24 147;
#P connect 9 0 47 0;
#P connect 19 0 9 0;
#P connect 21 0 19 0;
#P connect 8 0 21 0;
#P fasten 3 0 8 0 215 259 182 259;
#P fasten 34 0 17 0 24 419 152 419;
#P connect 40 0 15 0;
#P fasten 40 0 17 0 24 304 152 304;
#P connect 17 0 16 0;
#P connect 38 0 39 2;
#P fasten 36 0 33 0 25 313 25 313;
#P fasten 36 0 37 0 25 313 61 313;
#P fasten 36 0 38 0 25 313 98 313;
#P fasten 11 0 18 0 24 308 97 308;
#P connect 37 0 39 1;
#P connect 34 1 35 0;
#P fasten 34 0 15 0 24 422 27 422;
#P connect 15 0 14 0;
#P connect 32 0 36 0;
#P connect 39 0 34 0;
#P connect 33 0 39 0;
#P fasten 46 0 42 0 107 67 21 67;
#P fasten 41 0 42 0 21 68 21 68;
#P fasten 44 0 42 0 77 67 21 67;
#P fasten 45 0 42 0 141 67 21 67;
#P connect 43 0 41 0;
#P window clipboard copycount 49;


Viewing 3 posts - 1 through 3 (of 3 total)