filtering out black {color tracking}

Jun 26, 2011 at 4:32pm

filtering out black {color tracking}

hallo,

i am building color tracking system for my interactive project and i can´t find out how to filter out of the matrix the black {dark} or white {super light} part of the colour spectrum.

basically i would like to apply some condition like “if $i1< 20 && $i2 < 20 && $i3 < 20 then 0" where $i1, $i2, $i3 stand for the rgb. i have been thinking about jit.op, but here i dont know how to address concrete plane so i could apply this formula.

in help there is written ” If multiple operators are specified, they are applied on a plane by plane basis. ” but how should this operator look like? should it be somethinglike @op1 {i tried but didnt work for me}?

or maybe i could unpack rgb planes and then make the operation amongthem, but again i dont know how to perform such operation.

i would be very thankfull for any idea on this

sorry if this question is beginner like, i am new to jitter

tomas

#57774
Jun 27, 2011 at 9:41am

… it would be probably enough for me to find out how to address the particular plane with jit.op {?}

thanks

t.

#207288
Jun 27, 2011 at 4:21pm

[jit.op @op < < <] applies the operator to 3 of the planes. Having only one will apply it to all planes.

-Nate

Take a look at this to see if it helps:


----------begin_max5_patcher----------
655.3ocyWtsiaBCDF9ZVo8cvxWmFgMGSUUU6aPuuZ0JRvKwq.aVvYSZW028Z
O.YYSJDZB4vEIVLdv9e9XFyva2emEdtbCqDi9L5mHKq2zVr.aFKVMFrvYQaV
jFUBNhWHyxXBEdR8jJ1FELwOzdfJRlidMJsDkxzWoVFIPhUYyYEa8OkKXKjq
DvMQarxig0PN+4OQB15adAqTuWQJtT7XAagpRpTRvT6IHxLpYvt9OzCM21SR
gpj+alwahwmZ6ZkvEoLEDHjsaRjZwRtH4CafmYQo1yf8wCtxws8dnWK4JUyh
Y2dqEQYvVi+dAOJECy7m6uyLpGlL1jNofEoXEGIr8wiH0bAb4eUoVlNwKJgs
O0zXJdq0JUn9UNqR6X76hrMdb++vCsG7Pb8At3.IrN.cHgcSGx4fNOyUSyWy
Ewx08vhIcxCxgpMs2VR5PgApq8Nw3vxlHTBb6gN8tXs.F8noxNUM6ADtoJDg
mGIR5fK1iWYDwuJvsgzEup3tuv9bjmbxDIbLABv.Rf20DHr05vZ+SULETxbz
2z+9Rd27R61iYQpB9ltKt7GuyZBbqfTvTp2DTH8VEYe8DQl2XiLRn8sJxdQM
MS9JmYNKzbP3oQN2wq9rlbdN.4HM8NciftWxXpBIxoGd08oXNid9E0Gnj+Ag
zY40+JYRRJq+i0+mffhOxzhYyZBzCDtieCelGWGtXoiWnSGwF+p6jwC5jIX1
H13W0R.s4u6mwABwLwNrqTtpXQSv2z6BpkXhYkJt.5qqkW5WNgHu6zRdbLS7
gl3y3w4RcBTsPPOz8SzAqM+gHMSSos85BoMughsKuzbGhz7tJRKbnR6xmrQF
D1buJXybdzMakvfzlyUQZNWlGoFC5g+BREeSEB
-----------end_max5_patcher-----------
#207289

You must be logged in to reply to this topic.