如何校正相机拍摄的RGB颜色?
最近我脑子里有这个问题:我使用手机的相机(2MP)在计算机显示屏上拍了一张照片,然后将照片传输到我的计算机。我注意到,拍摄图像的各个像素 (RGB) 值与原始图片不同(这很明显!),但颜色看起来相同;所以我打算做的是修改拍摄的图像,使像素颜色值(RGB)与原始图像相同(如果可能的话100%),换句话说,使每个像素与原始图片相同!不使用原始图片。
我不知道这是否可能,但我们将非常感谢任何帮助,我正在使用带有 CIMG 库的 Visual c++ 2005 来处理图像!
提前致谢!
I had this question in my mind lately: I have taken a photo of a picture in my computer's display using my phone's camera (2MP) then transferred the picture to my computer. What i have noticed is that the individual pixel (RGB) values of the photographed image are different from the original picture (which is obvious !) but the color looks the same; so what i intend to do is modify the photographed image so that the pixel color values (RGB) are the same as the original (100% if possible), in other words make every pixel identical to the original picture ! without making use of the original picture.
I do not know if this is possible or not but any help will be extremely appreciated, I'm using Visual c++ 2005 with CIMG Library for processing images !
Thanks in advance !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我更感兴趣的是你为什么拍摄自己的屏幕?如果您运行的是 Windows,则只需按键盘上的“打印屏幕”键,然后打开,例如“绘制”并粘贴图像。
色差的存在是因为你的相机没有进行白平衡。即使是大多数手机相机也可以进行白平衡。在屏幕上拍摄一张完全充满白色的照片。然后告诉相机使用它作为白色的参考。拍下你的照片,它应该是正确的。
I'm more interested in WHY you photograph your own screen? If you are running windows you can just press the "Print Screen" key on your keyboard and then open, for example Paint and paste the image.
The colour difference is there because you have not white balanced your camera. Even the most mobile phone cameras can white balance. Take a picture filled entirely with white on your screen. Then tell the camera to use it as a reference for white. Take your photo and it should be correct.