Click or drag to resize
Accord.NET (logo)

ImageStatisticsYCbCr Constructor (Bitmap, Byte)

Initializes a new instance of the ImageStatisticsYCbCr class.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public ImageStatisticsYCbCr(
	Bitmap image,
	byte[,] mask
)
Request Example View Source

Parameters

image
Type: System.DrawingBitmap
Image to gather statistics about.
mask
Type: SystemByte
Mask array which specifies areas to collect statistics for.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionSource pixel format is not supported.
ArgumentExceptionMask must have the same size as the source image to get statistics for.
Remarks

The mask array must be of the same size as the specified source image, where 0 values correspond to areas which should be excluded from processing. So statistics is calculated only for pixels, which have none zero corresponding value in the mask.

See Also