如何校正相机拍摄的RGB颜色?

发布于 2024-09-19 21:12:31 字数 281 浏览 3 评论 0原文

最近我脑子里有这个问题:我使用手机的相机(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑凤梨 2024-09-26 21:12:31

我更感兴趣的是你为什么拍摄自己的屏幕?如果您运行的是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文