public HorizontalIntensityStatistics ( |
||
image | Source unmanaged image. | |
return | System |
public HorizontalIntensityStatistics( UnmanagedImage image )
{
// check image format
if (
( image.PixelFormat != PixelFormat.Format8bppIndexed ) &&
( image.PixelFormat != PixelFormat.Format16bppGrayScale ) &&
( image.PixelFormat != PixelFormat.Format24bppRgb ) &&
( image.PixelFormat != PixelFormat.Format32bppRgb ) &&
( image.PixelFormat != PixelFormat.Format32bppArgb ) &&
( image.PixelFormat != PixelFormat.Format48bppRgb ) &&
( image.PixelFormat != PixelFormat.Format64bppArgb )
)
{
throw new UnsupportedImageFormatException( "Unsupported pixel format of the source image." );
}
// gather statistics
ProcessImage( image );
}
HorizontalIntensityStatistics::HorizontalIntensityStatistics ( |
|
HorizontalIntensityStatistics::HorizontalIntensityStatistics ( |