C# Class Algorithmix.Preprocessing.Heuristics

Exibir arquivo Open project: Algorithmix/Papyrus

Public Properties

Property Type Description
log Logger

Public Methods

Method Description
CompareColors ( Color a, Color b ) : int
DetectBackground ( Bitmap document, int border = 10 ) : Bgr

Given a Document, this heuristic attempts to determine what the background is by finding the most common rgb colors in a border around the image

GetStartingFloodFillPoint ( Bitmap document, Color color ) : Point

Method Details

CompareColors() public static method

public static CompareColors ( Color a, Color b ) : int
a Color
b Color
return int

DetectBackground() public static method

Given a Document, this heuristic attempts to determine what the background is by finding the most common rgb colors in a border around the image
public static DetectBackground ( Bitmap document, int border = 10 ) : Bgr
document System.Drawing.Bitmap Image to be analyzed
border int Size of the border in percent
return Bgr

GetStartingFloodFillPoint() public static method

public static GetStartingFloodFillPoint ( Bitmap document, Color color ) : Point
document System.Drawing.Bitmap
color Color
return System.Drawing.Point

Property Details

log public_oe static_oe property

public static Logger log
return Logger