Method | Description | |
---|---|---|
AnalyzeNode ( |
||
DrawContours ( |
||
DrawContours ( |
||
FindBestColoredPixel ( Byte>.Image |
||
FindMostOccuringColor ( Byte>.Image |
||
GiveCards ( |
||
IsCard ( |
||
IsDiamond ( |
||
IsOval ( |
||
IsSquiggle ( |
||
LocateCards ( Byte>.Image |
LocateCards works by analyzing the contours in the image. For instance, the Diamond in Set is a polygon with exactly 4 vertices. The Oval has no such features yet. The Squiggle is not convex, but concave and has edges in a 'right bend', instead of only 'left bends' All these shapes are inside the contour of a (white) card, which is a rounded square. Cards may also be the (only) exterior boundaries
|
Method | Description | |
---|---|---|
AssignAverageColors ( |
||
AssignColor ( |
||
AssignColors ( |
||
AssignFill ( |
||
AssignFills ( |
||
AssignImage ( |
||
AssignImages ( |
||
AssignShape ( |
||
AssignShapes ( |
||
ClassifyBgr ( Bgr col ) : CardColor | ||
ClassifyBgr2 ( Bgr col ) : CardColor | ||
ClassifyHsv ( Hsv hsv ) : CardColor | ||
ColorDistance ( Bgr a, Bgr b ) : double | ||
ColorDistance ( Hsv a, Hsv b ) : double | ||
DetermineFill ( |
||
ExtractContourImage ( Byte>.Image |
||
FilterNode ( |
||
FilterTree ( |
||
RecognizeColor ( |
||
isDashed ( |
||
isGray ( Bgr col, double range ) : bool |
Check if R, G and B are closer than range together
|
public static AnalyzeNode ( |
||
cardNode | ||
return | ContourNode>.KeyValuePair |
public static DrawContours ( |
||
node | ||
canvas | Byte>.Image | |
return | void |
public static DrawContours ( |
||
node | ||
canvas | Byte>.Image | |
color | System | |
return | void |
public static FindBestColoredPixel ( Byte>.Image |
||
image | Byte>.Image | |
debug | Byte>.Image | |
return | Point |
public static FindMostOccuringColor ( Byte>.Image |
||
image | Byte>.Image | |
step | int | |
return | CardColor |
public static GiveCards ( |
||
tree | ||
return | ContourNode>>.IEnumerable |
public static IsCard ( |
||
node | ||
return | bool |
public static IsDiamond ( |
||
node | ||
return | bool |
public static IsOval ( |
||
node | ||
return | bool |
public static IsSquiggle ( |
||
node | ||
return | bool |
public LocateCards ( Byte>.Image |
||
table | Byte>.Image | An image displaying the table with the Set cards |
settings | ||
return | Point>.Dictionary |