net_prog
net_prog

Reputation: 10271

How to enhance contrast of images in AForge (like Photoshop's Auto-Constrast)

I want to enhance slightly a contrast of a bitmap, usually I do this by loading the image in Photoshop and using Auto-Contrast or Auto-Tone. The task is to add some contrast (maybe enhance colors) to the light pictures.

How do I do something close to this using AForge? Or maybe there is some other 3rd party library which could be better used.

Upvotes: 1

Views: 5173

Answers (2)

hypermush
hypermush

Reputation: 446

You probably want to use one of the AForge.NET colour correction filters. For contrast adjustment, the usual technique would be a histogram equalization or normalization.

Examples are in the AForge.NET documentation for histogram equalization and normalization.

Upvotes: 2

parapura rajkumar
parapura rajkumar

Reputation: 24433

If you are open to third party libraries, try OpenCV. Here is an example of adjusting contrast.

Upvotes: 1

Related Questions