Colour Depth Reduction


    Aug 04 2006 | 3:28 pm
    Hi
    Is it possible to reduce the colour depth of an image in a matrix below the apparent 24 bit minimum? The smallest data type I can use for the matrix is a char but I want to go down to say 4 or 16 colours in an image.
    It may be something I'm obviously missing but I'm a newbie.
    Thanks, Dave

    • Aug 04 2006 | 3:53 pm
      use jit.charmap but with a matrix map with a lower matrix size, like [ 4 char 4 4] and fill them. that would make 16 bit color (total, not per channel right guys?), just try it out. Alter the charmap helpfile.
      v a d e //
      www.vade.info abstrakt.vade.info
      On Aug 4, 2006, at 11:28 AM, Dave P wrote:
      > > Hi > > Is it possible to reduce the colour depth of an image in a matrix > below the apparent 24 bit minimum? The smallest data type I can use > for the matrix is a char but I want to go down to say 4 or 16 > colours in an image. > > It may be something I'm obviously missing but I'm a newbie. > > Thanks, Dave > -- > MAX/MSP 4.5.7 | PLUGGO 3.5.4 | Nuendo 3 (latest) | WIN XP Home | > Intel Celeron 2.8GHz | Sony Vaio >
    • Aug 04 2006 | 4:21 pm
      Thanks Vade
      I'll try that.... when I've cooked some dinner.
    • Aug 04 2006 | 4:31 pm
      with a normal 4 char matrix, you can try doing a bitwise AND with jit.op. like this:
    • Aug 06 2006 | 10:39 am
      Thanks folks
      I got both techniques working - so now I'm spoilt for choice.
      Dave