Making White whiter in grayscale


    Feb 11 2020 | 5:20 pm
    Hi list,
    I have a grayscale 1 plane char stream. I'd like to (probably) multiply this stream with an object which will make the white whiter but will keep the black. I'd try the [jit.op @op + @val 1.] but this will also whiten the black parts. If someone can give me a direction to look I'd be thankful!
    Best, Frans-Jan

    • Feb 11 2020 | 6:54 pm
      you want something like photoshop levels. the simple answer is to use the vizzie module MAPPR:
      the more complicated answer: for matrix input use jit.charmap, for texture input use jit.gl.slab @file cc.colormap.jxs. You can patch together something to use as curve editor using the function object, and the bspline object from the Jasch objects package (installable via the Package Manager).
    • Feb 12 2020 | 7:54 am
      Just wow. It took me a while to understand the complicated answer, which is no understatement. But this solution is beautiful! Thank you.