使用c ++调整位图图像亮度/对比度 [英] adjust bitmap image brightness/contrast using c++
本文介绍了使用c ++调整位图图像亮度/对比度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用c ++调整图像亮度/对比度,而不使用任何其他第三方库或依赖性
adjust image brightness/contrast using c++ without using any other 3rd party library or dependancy
推荐答案
=http://www.kweii.com/site/color_theory/2007_LV/BrightnessCalculation.pdf =nofollow>此处 - 使用RGB值的平均值并将其移位。
Image brightness is here - use the mean of the RGB values and shift them.
对比是此处提供的其他语言解决方案。
Contrast is here with other languages solutions available as well.
这篇关于使用c ++调整位图图像亮度/对比度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文