Code: Select all
image.read(4096,4096, "R", CharPixel, pixelArrayPointer);
image.read(4096,4096, "G", CharPixel, pixelArrayPointer);
image.read(4096,4096, "B", CharPixel, pixelArrayPointer);
Code: Select all
image.quantizeColorSpace(GRAYColorspace);
image.quantizeColors(256);
image.quantize();
Code: Select all
image.write("my_image.bmp");
I tried,
Code: Select all
image.channelDepth(ChannelType:GrayChannel, 8);
Can anyone please tell me, where I'm going wrong.