Category : color-space

I’m processing various images and one, even though the input file uses sRGB, after the processing, ImageMagick++ decides to save it to a grayscale image. $ identify ORIGINAL.jpg ORIGINAL.jpg JPEG 3840×2160 3840×2160+0+0 8-bit sRGB 776KB 0.130u 0:00.129 ^ +—- great. What I need. Once processed, I get: $ identify PROCESSED.jpg PROCESSED.jpg JPEG 1920×1080 1920×1080+0+0 8-bit ..

Read more

I am using WICConvertBitmapSource function to convert pixel format from BGR to Gray and I’m getting unexpected pixel values. … pIDecoder->GetFrame( 0, &pIDecoderFrame ); pIDecoderFrame->GetPixelFormat( &pixelFormat ); // GUID_WICPixelFormat24bppBGR IWICBitmapSource * dst; WICConvertBitmapSource( GUID_WICPixelFormat8bppGray, pIDecoderFrame, &dst ); Example on 4×3 image with following BGR pixel values: [ 0, 0, 255, 0, 255, 0, 255, 0, ..

Read more