开发者

Change the brightness/contrast of an image in EmguCV

开发者 https://www.devze.com 2023-02-15 16:03 出处:网络
I have a 开发者_StackOverflow中文版program that will load an image from the hard disk. The program is written using emgu cv and the image is a Bgr image. I want to allow the user to increase/decrease

I have a 开发者_StackOverflow中文版program that will load an image from the hard disk. The program is written using emgu cv and the image is a Bgr image. I want to allow the user to increase/decrease the brightness/contrast of the image. How can I do this? Some sample code would be appreciated (because I am still a newbie). Thanks.


It depends on your image adjustment requirements.

You can start using some basic techniques already wrapped in emguCV such as histogram equalization and gamma correction. You can also combine them to achieve better result.

Image<Bgr, byte> inputImage;
inputImage._EqualizeHist();
inputImage._GammaCorrect(1.8d);
0

精彩评论

暂无评论...
验证码 换一张
取 消