Looking to build an equiluminance demo, isolating color info only


    Jan 10 2010 | 8:51 pm
    Hi there, I'm trying to build a patch that will remove luminance info from an incoming video stream, leaving only color data.
    What I've done is take the incoming video stream, convert it to black & white (jit.rgb2luma), invert it, and then add it back to the original stream.
    Adjusting brightness/saturation/contrast gets something close to what I'm looking for, but not quite there yet.
    Any suggestions on a better way to do this?

    • Jan 11 2010 | 1:35 pm
      How about using:
      jit.rgb2hsl @lscale 0. @loffset 0.5
      and then converting back to argb with jit.hsl2rgb: