libjpeg 可以用来改变 C++ 中图像的对比度吗?
如果没有,我在哪里可以找到调整图像对比度的算法。我必须用 C++ 对其进行编码,并有权访问 libjpeg 和 libjpeg-turbo 库
http://en .wikipedia.org/wiki/Image_editing#Contrast_change_and_brightening
这是彩色图像的良好起点吗?
If not, where can I find the algorithm to adjust contrast of an image. I will have to code it in C++ and have access to libjpeg and libjpeg-turbo libraries
http://en.wikipedia.org/wiki/Image_editing#Contrast_change_and_brightening
Is this a good starting point for color images?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我能想到的最简单的是 ImageMagick 库,或 这样做你自己*。
* 我知道该答案中的代码不是 c++,但如果您了解 c 或 c++,您应该能够理解它。
The simplest I could have think of is the ImageMagick library, or do it yourself*.
* I know that the code in that answer is not c++, but if you know c or c++, you should be able to understand it.
对于初学者,您可能会喜欢这个: 在8位YUV色彩空间中处理
C
有对比度调整。对于 YUV 色彩空间中像素格式的图像,对比度调整非常容易,并且是像素的Y
分量的更新。libjpeg
并不完全是图像处理工具,除非您正在解码/编码 JPEG 并且需要在途中进行一些处理。You might like this one for starters: Processing in the 8-bit YUV Color Space
C
there is the contrast adjustment. With an image with pixel format in YUV color space, constrast adjustment is quite easy and is an update forY
component of the pixel.libjpeg
is not quite the tool for image processing, unless you are decoding/encoding JPEGs and you need some processing on the way.