Gather statistics about image in YCbCr color space.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class ImageStatisticsYCbCr

Remarks

The class is used to accumulate statistical values about images, like histogram, mean, standard deviation, etc. for each YCbCr color channel.

The class accepts 24 and 32 bpp color images for processing.

Sample usage:

CopyC#
// gather statistics
ImageStatisticsYCbCr stat = new ImageStatisticsYCbCr( image );
// get Y channel's histogram
ContinuousHistogram y = stat.Y;
// check mean value of Y channel
if ( y.Mean > 0.5 )
{
    // do further processing
}

Inheritance Hierarchy

System..::.Object
  AForge.Imaging..::.ImageStatisticsYCbCr

See Also