Pack color channels into grayscale
Posted: 2013-12-06T02:18:38-07:00
I want to take an RGBA png input, extract the G & B channels, and pack them into a single 8-bit grayscale image. In other words the final 8-bit grayscale PNG output has the source Green channel packed into the lower 4 bits, the Blue channel packed into the upper 4 bits.
I can see how to extract the G and B channels as grayscale, but I'm stuck on scaling/biasing the channels to pack them together. Does anyone know if this is possible using the command line?
Cheers, Noel
I can see how to extract the G and B channels as grayscale, but I'm stuck on scaling/biasing the channels to pack them together. Does anyone know if this is possible using the command line?
Cheers, Noel