Forums > Jitter

tracking with Jitter?!

January 23, 2006 | 12:23 am

Hi!
For a project at university I have to develope a part of an "exhibition", where I need to track relativly fast objects in front of a static backround.
Beeing a complet jitter-newbie I find it pretty difficult to get down to what I need:

We try to build a big window behind which cars pass by (@ the moment in a model of course). These we want to mask (track) and use the outlines to generate video output which is to be projected onto that window, kind of overlapping the driving car. The aim is to visualise things like the way air is pushed in a tunnel by cars driving through it.

Sorry for writing mistakes and comprehension problems!
I’d be absolutely thankfull for any given hint on how to solve my problems:

-tracking/masking of moving object in front of static background,
-using generated info to modify output.

thanks a lot for any possible help

cheers Philipp


January 23, 2006 | 12:48 am

hi,

CV.jit is your free option and softvns the expensive though more powerfull one. (check maxobjects.com)
all will depend on lighting and some other issues though.

cheers


January 23, 2006 | 6:59 am

this might help

max v2;
#N vpatcher 50 76 1164 817;
#P origin -62 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 35 499 100 196617 outputs average value for the cell;
#P button 134 484 15 0;
#P number 38 480 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#N vpatcher 10 59 610 459;
#P outlet 66 218 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 63 164 27 196617 +;
#P window linecount 0;
#P newex 63 136 27 196617 +;
#P newex 64 187 27 196617 / 3;
#P newex 131 165 40 196617 change;
#P outlet 136 196 15 0;
#P inlet 71 27 15 0;
#P number 146 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 98 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 61 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 60 83 76 196617 unpack 0 0 0 0;
#P newex 60 60 136 196617 jit.3m;
#P connect 5 0 0 0;
#P connect 0 1 1 0;
#P connect 1 1 2 0;
#P connect 2 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 8 0;
#P connect 8 0 11 0;
#P connect 3 0 9 1;
#P connect 4 0 10 1;
#P connect 1 2 3 0;
#P connect 1 2 7 0;
#P connect 7 0 6 0;
#P connect 1 3 4 0;
#P pop;
#P newobj 39 454 105 196617 p change;
#P number 381 624 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 333 624 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 296 624 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 295 598 76 196617 unpack 0 0 0 0;
#P newex 295 575 136 196617 jit.3m;
#P window linecount 6;
#P comment 35 536 172 196617 the p change subpatcher (option click this object to get the help file , double click it when your patch is locked to see it’s guts) will send out a bang whenever they "detect" a change in their "sub-matrix";
#P window linecount 2;
#P comment 209 293 181 196617 measures list one vs. list two (plays only the movement);
#P window linecount 1;
#P comment 159 261 181 196617 abreviation for "trigger list list";
#P comment 245 238 388 196617 takes away all color (if you want color delete the @ symbol and everything after);
#P user jit.pwindow 276 377 261 176 0 1 0 0 1 0;
#P newex 40 414 222 196617 jit.scissors @rows 4 @columns 4;
#P number 161 43 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 113 84 33 196617 clear;
#P newex 113 63 58 196617 metro 250;
#P toggle 113 41 15 0;
#P message 150 83 30 196617 open;
#P newex 113 104 56 196617 jit.qt.grab;
#P user multiSlider 855 25 12 82 0. 100. 1 2681 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 786 25 12 82 0. 1. 1 2681 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 718 25 12 82 0. 4. 1 2681 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 222 29 12 82 0. 100. 1 2681 47 0 0 2 0 0 0;
#M frgb 242 38 38;
#M brgb 255 255 255;
#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 298 29 12 82 0. 100. 1 2681 47 0 0 2 0 0 0;
#M frgb 255 9 9;
#M brgb 255 255 255;
#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 flonum 298 131 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 298 152 73 196617 slide_down $1;
#P flonum 222 131 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 222 152 60 196617 slide_up $1;
#P newex 113 131 45 196617 jit.slide;
#B color 5;
#P newex 666 126 45 196617 loadbang;
#P message 684 148 17 196617 1.;
#P flonum 851 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 715 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 788 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 852 146 69 196617 saturation $1;
#P message 715 146 70 196617 brightness $1;
#P message 788 146 61 196617 contrast $1;
#P newex 704 184 52 196617 jit.brcosa;
#B color 5;
#P newex 119 235 123 196617 jit.brcosa @saturation 0.;
#P newex 112 295 89 196617 jit.op @op absdiff;
#P newex 119 261 27 196617 t l l;
#P window linecount 3;
#P comment 324 81 266 196617 with these slides you can tune the sensitivity of the movement with these sliders (this is not really necesarry…but it helps) jit.slide is a sort of video delay;
#P window linecount 5;
#P comment 54 351 172 196617 with scissors you can chop the jit window into a grid (this one is four by four) if you connected 16 pwindow to all of these outlets you would get the whole picture;
#P window linecount 3;
#P comment 754 185 239 196617 jit.brcosa is "brightness contrast and saturation" another nice "fine tuning" object for different lighting situations , but not really necessary;
#P comment 153 485 100 196617 bangs when ever there is movement in the cell;
#P window linecount 11;
#P comment 5 28 100 196617 a friend helped me out with this… hope that it is helpful. you will want to clean this up alot , there is way too much processing going on , but i included some extra stuff that you might find usefull);
#P connect 44 0 45 0;
#P connect 33 0 44 0;
#P fasten 6 0 33 0 117 331 45 331;
#P connect 5 1 6 0;
#P connect 29 0 30 0;
#P connect 30 0 27 0;
#P connect 28 0 27 0;
#P connect 31 0 27 0;
#P connect 18 0 17 0;
#P connect 20 0 17 0;
#P connect 27 0 17 0;
#P connect 8 0 7 0;
#P connect 7 0 5 0;
#P connect 44 1 46 0;
#P connect 32 0 30 1;
#P connect 5 0 6 1;
#P connect 23 0 19 0;
#P connect 19 0 18 0;
#P connect 6 0 34 0;
#P connect 34 0 39 0;
#P connect 39 1 40 0;
#P connect 40 1 41 0;
#P connect 22 0 21 0;
#P connect 21 0 20 0;
#P connect 40 2 42 0;
#P connect 40 3 43 0;
#P connect 16 0 15 0;
#P connect 11 0 8 0;
#P connect 9 0 8 0;
#P connect 10 0 8 0;
#P fasten 17 0 8 0 118 188 709 188;
#P fasten 15 0 13 0 689 169 720 169;
#P connect 24 0 13 0;
#P connect 13 0 10 0;
#P fasten 15 0 12 0 689 172 793 172;
#P connect 25 0 12 0;
#P connect 12 0 9 0;
#P connect 26 0 14 0;
#P fasten 15 0 14 0 689 168 856 168;
#P connect 14 0 11 0;
#P pop;


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