Forums > Jitter

finding color of list of jit.pwindow pixels

February 14, 2008 | 9:00 pm

Hey, i have a video (pretty static, though there are a few points that change) that i would like to be able to see if certain points in the video are a certain color.

If you have seen the YouTube video of "Gumball Sequencer" this is the idea i want to try to emulate.

I am trying to use the suckah object, and it does exactly what i want it to when i position suckah behind my jit.pwindow and click on the window…but when i try to feed it a set of packed coordinates, it doesnt seem to get me the right information out of suckah. is there an object that i could send either one coordinate pair or a list of coordinate pairs to the jit.pwindow to get the color of certain pixels? or a group of pixels around a center point?

thanks!

And i have looked at the cv.jit externals…cool, but i dont think anything there will help me


February 14, 2008 | 10:06 pm

How about using the mouse coord output from jit.pwindow to query the
matrix you’re inputting?
wes

On Thu, Feb 14, 2008 at 1:00 PM, Tom

wrote:
> Hey, i have a video (pretty static, though there are a few points that change) that i would like to be able to see if certain points in the video are a certain color.
>
> If you have seen the YouTube video of "Gumball Sequencer" this is the idea i want to try to emulate.
>
> I am trying to use the suckah object, and it does exactly what i want it to when i position suckah behind my jit.pwindow and click on the window…but when i try to feed it a set of packed coordinates, it doesnt seem to get me the right information out of suckah. is there an object that i could send either one coordinate pair or a list of coordinate pairs to the jit.pwindow to get the color of certain pixels? or a group of pixels around a center point?
>
> thanks!
>
> And i have looked at the cv.jit externals…cool, but i dont think anything there will help me
>
>
>


February 14, 2008 | 10:36 pm

Ya, thats what im asking, how can i query the matrix by giving it coordinates?


February 14, 2008 | 10:47 pm

send getcell to a jit.matrix.
wes

On Thu, Feb 14, 2008 at 2:36 PM, Tom

wrote:
>
> Ya, thats what im asking, how can i query the matrix by giving it coordinates?
>
>
>


February 14, 2008 | 11:40 pm

Ok, sorry – i have not really ever used jit before, so how do i get my video into the matrix? and then specifically how do i send coordinates using getcell


February 14, 2008 | 11:46 pm

On Feb 14, 2008, at 3:40 PM, Tom wrote:

>
> Ok, sorry – i have not really ever used jit before, so how do i get
> my video into the matrix? and then specifically how do i send
> coordinates using getcell

Please read the first few Jitter tutorials, and then post back if you
still have questions.

-Joshua


February 15, 2008 | 2:22 am

ok, im getting stuff with the getcell in the jit.matrix, however, it doesnt seem to be right. i send a packed message of x-coord, y-coord to "getcell $1" and that goes to the matrix…but no matter what the x and y coordinates are, the value that comes out of the matrix is the same.

i attached a newer version of my patch…can you let me know what i am doing incorrectly?

thanks!


February 24, 2008 | 5:34 am

look at the right outlet of the jit.matrix object when you send that
query.

On Feb 14, 2008, at 8:22 PM, Tom wrote:

> ok, im getting stuff with the getcell in the jit.matrix, however, it
> doesnt seem to be right. i send a packed message of x-coord, y-
> coord to "getcell $1" and that goes to the matrix…but no matter
> what the x and y coordinates are, the value that comes out of the
> matrix is the same.
>
> i attached a newer version of my patch…can you let me know what i
> am doing incorrectly?
>
> thanks!


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