C# Class VietOCR.NET.Utilities.gmseDeskew

Mostra file Open project: nguyenq/VietOCR3.NET Class Usage Examples

Public Methods

Method Description
GetAlpha ( int Index ) : double
GetSkewAngle ( ) : double
RotateImage ( Bitmap bmp, double angle ) : Bitmap
gmseDeskew ( Bitmap bmp ) : System.Drawing

Private Methods

Method Description
Calc ( ) : void
Calc ( int x, int y ) : void
CalcDIndex ( double d ) : double
GetTop ( int Count ) : HougLine[]
Init ( ) : void
IsBlack ( int x, int y ) : bool

Method Details

GetAlpha() public method

public GetAlpha ( int Index ) : double
Index int
return double

GetSkewAngle() public method

public GetSkewAngle ( ) : double
return double

RotateImage() public static method

public static RotateImage ( Bitmap bmp, double angle ) : Bitmap
bmp System.Drawing.Bitmap
angle double
return System.Drawing.Bitmap

gmseDeskew() public method

public gmseDeskew ( Bitmap bmp ) : System.Drawing
bmp System.Drawing.Bitmap
return System.Drawing