jit.object to make my video black and white?

Oct 1, 2009 at 12:35pm

jit.object to make my video black and white?

I know that this is a question where the usual answer would be “read the reference”

but there are so many jitter objects.. so if you could be so kind

thanks

#45682
Oct 1, 2009 at 1:04pm

[jit.brcosa] saturation 0.

[jit.unpack 4] and only use green channel (carries most luma)

may also be able to do a similar trick using [jit.matrix] and planmap message

here’s a few different ways to get you going… the first is the easiest, the other two may offer performance advantages at the expense of flexibility… YMMV

#164731
Oct 1, 2009 at 3:57pm

for grayscale you can also use jit.rgb2luma, or for pure black-and-white, try jit.op @op > @val 127 (or whatever threshold you want). the op will convert 0-255 char values to black or white, just as though they each went through a logical operator (which they did) and came out “off or on” for “false or true”.

#164732

You must be logged in to reply to this topic.