Forums > Jitter

getting the pixel color of a coordinate on a movie

November 6, 2006 | 7:31 pm

Hi, I just need to get the color of the top-left pixel in a movie at different times so I can run it through a chroma keyer. I know this is probably really simple, but I can’t figure it out. Thanks.


November 6, 2006 | 7:36 pm

send the getcell 0 0 message to a matrix object.

wes

On 11/6/06, randy wrote:
>
> Hi, I just need to get the color of the top-left pixel in a movie at different times so I can run it through a chroma keyer. I know this is probably really simple, but I can’t figure it out. Thanks.
>



jml
November 6, 2006 | 7:39 pm

if you output the movie into a matrix, then you can use the [getcell 0 0] message on that matrix to extract the pixelinfo.

this should help…
but reading the tutorials and docs will help more.
jl


November 6, 2006 | 7:40 pm

Like so,

#P window setfont "Sans Serif" 9.;
#P number 228 200 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 192 200 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 156 200 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 120 166 118 196617 unpack 0 0 0 0;
#P newex 120 144 41 196617 jit.iter;
#P user jit.pwindow 33 144 82 62 0 1 0 0 1 0;
#P message 88 59 30 196617 read;
#P toggle 34 37 15 0;
#P newex 34 58 51 196617 qmetro 5;
#P newex 34 80 63 196617 jit.qt.movie;
#P newex 34 115 320 196617 jit.matrix 4 char 1 @usesrcdim 1 @srcdimstart
0 0 @srcdimend 0 0;
#P connect 7 3 10 0;
#P connect 7 2 9 0;
#P connect 7 1 8 0;
#P connect 6 0 7 0;
#P connect 0 0 5 0;
#P fasten 0 0 6 0 39 136 125 136;
#P fasten 4 0 1 0 93 77 39 77;
#P connect 3 0 2 0;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P window clipboard copycount 11;


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