Getcell to track position of particular color
Hi there,
Im trying to design a color tracking module. Currently, I have a single color (from a jit.fill & a matrix) feeding into another matrix. The position of the single colored matrix is determined by the cv.jit.track.draw (and each side added and subtracted by predetermined values).
What I'd like to happen is basically jitter tutorial 25 in reverse...I want to only look at a specific cell (or cells) for that single color (so, for example, a 4-plane matrix with just a green color [ 0 0 255 0] would trigger a bang when it crosses cell 0 45.
Any ideas on how to accomplish that?
Thanks
-Levy
Okay, so an update..
I used a metro object to trigger a getcell, then unpacked the output of the matrix, fed that to a select 255 and a match 255 from the appropriate unpack outlet. It works, except that it triggers bangs until the plane moves to a different pixel.
Is there a way to select / match a number and output a single bang until it is triggered again?
Haven't seen your patch, but maybe a [change] object or [onebang] might help somehow?
I tried the [change] object. Its very useful for sure.
Is it possible to track a region of the matrix instead of a single cell (getcell, but with specified multiple continguous pixels)?
Ill post my patch tonight.
jit.submatrix?
Thanks for the quick response. I'll check it out and let you know.
:)