Ok. If it is not posible to specifying gamma of the pixel data I read - how do I change colorspace with out ImageMagick first removes the gamma? From: https://imagemagick.org/script/command-line-options.php Note, ImageMagick assumes the sRGB colorspace if the image format does not indicate otherwise ...
There exists an option to set ColorSpace in ReadSettings as shown below: PixelStorageSettings pixelStorageSettings = new PixelStorageSettings(100, 100, StorageType.Short, PixelMapping.RGB); pixelStorageSettings.ReadSettings.ColorSpace = ColorSpace.RGB; pixelStorageSettings.ReadSettings.ColorType ...
I kan load/read a raw RGB pixel array into a MagickImage. PixelStorageSettings pixelStorageSettings = new PixelStorageSettings(100, 100, StorageType.Short, PixelMapping.BGR); var colorImage = new MagickImage(myImageDataByteArray, pixelStorageSettings); How do I load/read a monochrome pixel data ...
I have some RGB images with no gamma applied. When I try to read the images like this PixelStorageSettings pixelStorageSettings = new PixelStorageSettings(100, 100, StorageType.Short, PixelMapping.BGR); var colorImage = new MagickImage(myImageData, pixelStorageSettings); The resulting colorImage ...