Свойство | Тип | Описание | |
---|---|---|---|
DOUBLE_ROTATE | bool | ||
MaskColor | Color | ||
MaxAspectRatio | int | ||
MinAspectRatio | int | ||
MinDimension | int | ||
MinTransparencyRatio | double | ||
log | Logger |
Метод | Описание | |
---|---|---|
AspectRatioFilter ( |
Simple helper function test to filter extracted images based on their aspect ratio height/width
|
|
ExtractImages ( |
Extracts all objects from the source image
|
|
FindBottomTransparent ( Byte>.Image |
Find the bottow row with non-transparent pixels
|
|
FindLeftTransparent ( Byte>.Image |
Find the leftmost column with non-transparent pixels
|
|
FindRightTransparent ( Byte>.Image |
Find the rightmost column with non-transparent pixels
|
|
FindTopTransparent ( Byte>.Image |
Find the top row of non-transparent pixels
|
|
FloodFill ( |
Flood fill in a BFS manner, so as not to overwhelm the stack
|
|
LabelConnectedComponents ( |
Lable Connected Components of the scan, Identify unique objects
|
|
Orient ( |
Rotates the blobs to be vertical
|
|
Orient_Hough ( |
||
Orient_Step2 ( |
||
RotateImg ( |
Rotate the image by angle degrees, with bkColor as new background Uses some magic with the translatetransform and pixel2d :P WOW!
|
|
TransparencyFilter ( |
Simple helper function that will test to make sure that more than a certain percentage of the shred is non a transparent color.
|
Метод | Описание | |
---|---|---|
ApplyBlobExtractor ( |
Applies the blob extraction feature of Aforge
|
|
ExtractSingleImage ( |
Extracts a single object given the corresponding mask and rectangle
|
|
FilterBlob ( |
Simple helper function to filter blobs. Currently works solely on size.
|
|
GetCropZone ( Byte>.Image |
Simple helper function for cropping the image after rotation
|
public static AspectRatioFilter ( |
||
shred | the extracted shred | |
Результат | bool |
public static ExtractImages ( |
||
Source | the scan of all the shreds | |
Mask | ||
Результат | List |
public static FindBottomTransparent ( Byte>.Image |
||
myImg | Byte>.Image | the image to find the last row with non-transparent pixels |
Результат | int |
public static FindLeftTransparent ( Byte>.Image |
||
myImg | Byte>.Image | the image to find the first column with non-transparent pixels |
Результат | int |
public static FindRightTransparent ( Byte>.Image |
||
myImg | Byte>.Image | the image to find the last column with non-transparent pixels |
Результат | int |
public static FindTopTransparent ( Byte>.Image |
||
myImg | Byte>.Image | image to find top non-transparent pixels |
Результат | int |
public static FloodFill ( |
||
image | the image we wish to fill on | |
xpixel | int | the x pixel to sample from |
ypixel | int | the y pixel to sample from |
threshold | double | the threshold of difference |
myColor | Bgr | |
Результат |
public static LabelConnectedComponents ( |
||
image | The mask | |
Результат | int |
public static Orient ( |
||
blob | image blob to orient | |
Результат |
public static Orient_Hough ( |
||
blob | ||
Результат |
public static Orient_Step2 ( |
||
blob | ||
Результат |
public static RotateImg ( |
||
bmp | the image to be rotated | |
angle | float | the angle to rotate by |
bkColor | Color | background color for new background pixels |
Результат |
public static TransparencyFilter ( |
||
shred | ||
Результат | bool |
public static double MinTransparencyRatio | ||
Результат | double |