Just wondering the best way to inverse the colours of a webcam feed coming
out of jit.qt.grab.
jit.op @op ~
~ is the bitwise complement operator meaning that it will take 255 and
make it 0 or for the 8-bit color value 00011100 it will produce
> jit.op @op ~
Yes, that’s probably the fastest, but just for reference of other
ways to handle color processing check out the following.
jit.op @op !- @val 1.
jit.scalebias @bias 1. @scale -1.
Thanks Wes for the quick reply, knew it would be something straight forward!
Cheers also Joshua for the pointers. I’ve got a deadline in a few weeks, and
am on a steep learning curve with this stuff…expect a few more newb
questions in the near future! ;-)
Log in to reply
SUBSCRIBE TO OUR NEWSLETTER
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions