C# 클래스 Accord.Imaging.ImageStatisticsYCbCr

Gather statistics about image in YCbCr color space.

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:

// 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 }
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
ImageStatisticsYCbCr ( Bitmap image ) : System

Initializes a new instance of the ImageStatisticsYCbCr class.

ImageStatisticsYCbCr ( Bitmap image, Bitmap mask ) : System

Initializes a new instance of the ImageStatisticsYCbCr class.

The mask image must be a grayscale/binary (8bpp) image of the same size as the specified source image, where black pixels (value 0) correspond to areas which should be excluded from processing. So statistics is calculated only for pixels, which are none black in the mask image.

ImageStatisticsYCbCr ( Bitmap image, byte mask ) : System

Initializes a new instance of the ImageStatisticsYCbCr class.

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.

ImageStatisticsYCbCr ( UnmanagedImage image ) : System

Initializes a new instance of the ImageStatisticsYCbCr class.

ImageStatisticsYCbCr ( UnmanagedImage image, UnmanagedImage mask ) : System

Initializes a new instance of the ImageStatisticsYCbCr class.

The mask image must be a grayscale/binary (8bpp) image of the same size as the specified source image, where black pixels (value 0) correspond to areas which should be excluded from processing. So statistics is calculated only for pixels, which are none black in the mask image.

ImageStatisticsYCbCr ( UnmanagedImage image, byte mask ) : System

Initializes a new instance of the ImageStatisticsYCbCr class.

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.

비공개 메소드들

메소드 설명
CheckMaskProperties ( PixelFormat maskFormat, Size maskSize, Size sourceImageSize ) : void
CheckSourceFormat ( PixelFormat pixelFormat ) : void
ProcessImage ( UnmanagedImage image, byte mask, int maskLineSize ) : void

메소드 상세

ImageStatisticsYCbCr() 공개 메소드

Initializes a new instance of the ImageStatisticsYCbCr class.
Source pixel format is not supported.
public ImageStatisticsYCbCr ( Bitmap image ) : System
image System.Drawing.Bitmap Image to gather statistics about.
리턴 System

ImageStatisticsYCbCr() 공개 메소드

Initializes a new instance of the ImageStatisticsYCbCr class.

The mask image must be a grayscale/binary (8bpp) image of the same size as the specified source image, where black pixels (value 0) correspond to areas which should be excluded from processing. So statistics is calculated only for pixels, which are none black in the mask image.

Source pixel format is not supported. Mask image must be 8 bpp grayscale image. Mask must have the same size as the source image to get statistics for.
public ImageStatisticsYCbCr ( Bitmap image, Bitmap mask ) : System
image System.Drawing.Bitmap Image to gather statistics about.
mask System.Drawing.Bitmap Mask image which specifies areas to collect statistics for.
리턴 System

ImageStatisticsYCbCr() 공개 메소드

Initializes a new instance of the ImageStatisticsYCbCr class.

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.

Source pixel format is not supported. Mask must have the same size as the source image to get statistics for.
public ImageStatisticsYCbCr ( Bitmap image, byte mask ) : System
image System.Drawing.Bitmap Image to gather statistics about.
mask byte Mask array which specifies areas to collect statistics for.
리턴 System

ImageStatisticsYCbCr() 공개 메소드

Initializes a new instance of the ImageStatisticsYCbCr class.
Source pixel format is not supported.
public ImageStatisticsYCbCr ( UnmanagedImage image ) : System
image UnmanagedImage Unmanaged image to gather statistics about.
리턴 System

ImageStatisticsYCbCr() 공개 메소드

Initializes a new instance of the ImageStatisticsYCbCr class.

The mask image must be a grayscale/binary (8bpp) image of the same size as the specified source image, where black pixels (value 0) correspond to areas which should be excluded from processing. So statistics is calculated only for pixels, which are none black in the mask image.

Source pixel format is not supported. Mask image must be 8 bpp grayscale image. Mask must have the same size as the source image to get statistics for.
public ImageStatisticsYCbCr ( UnmanagedImage image, UnmanagedImage mask ) : System
image UnmanagedImage Image to gather statistics about.
mask UnmanagedImage Mask image which specifies areas to collect statistics for.
리턴 System

ImageStatisticsYCbCr() 공개 메소드

Initializes a new instance of the ImageStatisticsYCbCr class.

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.

Source pixel format is not supported. Mask must have the same size as the source image to get statistics for.
public ImageStatisticsYCbCr ( UnmanagedImage image, byte mask ) : System
image UnmanagedImage Image to gather statistics about.
mask byte Mask array which specifies areas to collect statistics for.
리턴 System