Re: [Image-SIG] RGB[8:8:8] to RGB[4:4:4] and RGB[12:12:12]

2008-08-18 Thread Laura & Edward Cannon
color spaces first off the data you got is not character data, it is python integers, to get only 4 bits of significance try something like int(floor(x/8.0)). padding could be accomplished by multiplication by 8. The answers to these would still be python integers, which would still need to be enco

[Image-SIG] RGB[8:8:8] to RGB[4:4:4] and RGB[12:12:12]

2008-08-18 Thread Ashish Sethi
Hey all, I am newbie to image processing using python I have a problem in converting between different RGB color spaces.I have a jpeg file in rgb mode. The rgb data by default is in RGB[8:8:8] mode...i.e, 8 bits(1 byte) per band(r,g,b). I need to convert it into RGB[4:4:4] format by getting the r