C# Класс Algorithmix.Preprocessing.Heuristics

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
log Logger

Открытые методы

Метод Описание
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

Описание методов

CompareColors() публичный статический Метод

public static CompareColors ( Color a, Color b ) : int
a Color
b Color
Результат int

DetectBackground() публичный статический Метод

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
Результат Bgr

GetStartingFloodFillPoint() публичный статический Метод

public static GetStartingFloodFillPoint ( Bitmap document, Color color ) : Point
document System.Drawing.Bitmap
color Color
Результат System.Drawing.Point

Описание свойств

log публичное статическое свойство

public static Logger log
Результат Logger