color-space

How to read jpeg image with Adobe RGB colorspace in OpenCV?

对着背影说爱祢 提交于 2021-02-20 06:28:33
问题 I am trying to read and write jpegs wth Adobe RGB colorspace in OpenCV. OpenCV assumes the jpeg has sRGB colorspace and when displaying or writing to file, the image loses some of its color intensity. I found this intensity loss was due to colorspace difference by answers given to my previous question. Is there anyway I can make OpenCV to read Adobe RGB colorspace without casting it to sRGB? 回答1: Some information that is hopefully useful for anyone looking for a work-around for dealing with

How to read jpeg image with Adobe RGB colorspace in OpenCV?

筅森魡賤 提交于 2021-02-20 06:26:35
问题 I am trying to read and write jpegs wth Adobe RGB colorspace in OpenCV. OpenCV assumes the jpeg has sRGB colorspace and when displaying or writing to file, the image loses some of its color intensity. I found this intensity loss was due to colorspace difference by answers given to my previous question. Is there anyway I can make OpenCV to read Adobe RGB colorspace without casting it to sRGB? 回答1: Some information that is hopefully useful for anyone looking for a work-around for dealing with

How to read jpeg image with Adobe RGB colorspace in OpenCV?

半世苍凉 提交于 2021-02-20 06:22:56
问题 I am trying to read and write jpegs wth Adobe RGB colorspace in OpenCV. OpenCV assumes the jpeg has sRGB colorspace and when displaying or writing to file, the image loses some of its color intensity. I found this intensity loss was due to colorspace difference by answers given to my previous question. Is there anyway I can make OpenCV to read Adobe RGB colorspace without casting it to sRGB? 回答1: Some information that is hopefully useful for anyone looking for a work-around for dealing with

Setup of IMTransform Video Processor for color space conversion

荒凉一梦 提交于 2021-02-10 12:44:16
问题 I am trying to do some basic color space conversion using Video Processor MFT. My camera natively supports NV12 and I need RGB24, to code some shader which will provide cartoon-like effect. Here is definition of class Media which is used to perform MF. class Media : public IMFSourceReaderCallback //this class inhertis from IMFSourceReaderCallback { CRITICAL_SECTION criticalSection; long referenceCount; WCHAR *wSymbolicLink; UINT32 cchSymbolicLink; IMFSourceReader* sourceReader; MFT_REGISTER

Lossless RGB24 to YUV444 transformation

混江龙づ霸主 提交于 2021-02-08 07:55:42
问题 I am currently attempting to undergo lossless compression of RGB24 files using H264 on FFMPEG. However, the color space transformation used in the H264 compression (RGB24 -> YUV444) has proven to be lossy (I'm guessing due to quantisation error). Is there anything else I can use (eg a program) to transform my RGB24 files to YUV losslessly, before compressing them with lossless H264? The ultimate goal is to compress an RGB24 file then decompress it, with the decompressed file exactly matching

How to remove hidden marks from images using python opencv?

守給你的承諾、 提交于 2021-02-06 10:15:26
问题 I wanted to work on a small project to challenge my computer vision and image processing skills. I came across a project where I want to remove the hidden marks from the image. Hidden here refers to the watermarks that are not easily visible in rgb space but when you convert into hsv or some other space the marks become visible. Here's one example: BGR SPACE: HSV SPACE: I've tried different ways but was able to implement a solution that would remove those watermarks from the image. I am

Plotting CMYK color space as 3D color solid

天大地大妈咪最大 提交于 2020-12-11 09:09:49
问题 I am using the following POV-Ray loop to plot sRGB coordinates in other color spaces. The loop only generates points along the outer surface, and then connects them with triangles. Since the sRGB space is a sort of twisted cube, that means 6 outer faces and 8 vertices. #macro cie_calc_gamut_xyz_srgb() #for (i, 0, cie_sample_count_srgb) #for (j, 0, cie_sample_count_srgb) // side 0 & 3 #local cooRGB = <i/cie_sample_count_srgb,j/cie_sample_count_srgb,0>; #local cooXYZ = cie_convRGB2XYZ(cooRGB);

Plotting CMYK color space as 3D color solid

我的梦境 提交于 2020-12-11 09:09:48
问题 I am using the following POV-Ray loop to plot sRGB coordinates in other color spaces. The loop only generates points along the outer surface, and then connects them with triangles. Since the sRGB space is a sort of twisted cube, that means 6 outer faces and 8 vertices. #macro cie_calc_gamut_xyz_srgb() #for (i, 0, cie_sample_count_srgb) #for (j, 0, cie_sample_count_srgb) // side 0 & 3 #local cooRGB = <i/cie_sample_count_srgb,j/cie_sample_count_srgb,0>; #local cooXYZ = cie_convRGB2XYZ(cooRGB);

cpp rgb to yuv422 conversion

僤鯓⒐⒋嵵緔 提交于 2020-07-07 11:48:05
问题 I'm trying to convert an image (originally from QImage) in a RGB/RGBA format (can be changed) to a YUV422 format. My initial intention was to use OpenCV cvtColor to do the work but it does not enable the conversion of RGB/RGBA to 422 format. I searched for alternatives and even considered to write my own conversion according to this but it would not work fast enough. I searched for another library to use and found this post but it is relay old and not so relevant. So my question is what good

Combining two YV12 image buffers into a single side-by-side image

我只是一个虾纸丫 提交于 2020-06-28 09:04:39
问题 I have two image buffers in YV12 format that I need to combine into a single side-by-side image. (1920x1080) + (1920x1080) = (3840*1080) YV12 is split into 3 seperate planes. YYYYYYYY VV UU The pixel format is 12 bits-per-pixel. I have created a method that memcpy s one buffer (1920x1080) into a larger buffer (3840x1080), but it isn't working. Here is my c++. BYTE* source = buffer; BYTE* destination = convertBuffer3D; // copy over the Y for (int x = 0; x < height; x++) { memcpy(destination,