Make something look like Photoshop auto tone with Aforge.net or C #

Im developing an image detection application for images.

But there is a problem with my camera, which is trying to compensate for the light, and the image result is bad, in most cases I have a cold or warm effect on the image. When I use Photoshop, there is an AutoTone function that normalizes the image and reduces this problem.

Image

Image after Photoshop AutoTone

With aforge, I want to use the HistogramEqualization () filter, but the result is very bad:

Image after HistogramEqualization

// create filter
HistogramEqualization filter = new HistogramEqualization( );
// process image
filter.ApplyInPlace( sourceImage );

So my question is: Is there a function in Accord or Aforge to have the same Photoshop auto-tuning result? If not, is there a library or script that allows you to do this?

Thanks to everyone.

+5
source share
2

LevelsLinear :

ImageStatistics stats = new ImageStatistics(sourceImage);
LevelsLinear levelsLinear = new LevelsLinear {
    InRed = stats.Red.GetRange( 0.90 ),
    InGreen = stats.Green.GetRange( 0.90 ),
    InBlue  = stats.Blue.GetRange( 0.90 )
};

levelsLinear.ApplyInPlace(sourceImage);

, .

+3

, , , , , , , . , , , . , , , , , , . .

, , . , , , , , , . , , .

+1

All Articles