Class BoundingBox
A Bounding Box helper class
public sealed class BoundingBox
- Inheritance
-
BoundingBox
- Inherited Members
Properties
BottomLeft
bottom left corner of the box
public ResultPoint BottomLeft { get; }
Property Value
BottomRight
bottom right corner of the box
public ResultPoint BottomRight { get; }
Property Value
MaxX
max x
public int MaxX { get; }
Property Value
MaxY
max y
public int MaxY { get; }
Property Value
MinX
min x
public int MinX { get; }
Property Value
MinY
min y
public int MinY { get; }
Property Value
TopLeft
top left corner of the box
public ResultPoint TopLeft { get; }
Property Value
TopRight
top right corner of the box
public ResultPoint TopRight { get; }
Property Value
Methods
Create(BitMatrix, ResultPoint, ResultPoint, ResultPoint, ResultPoint)
Initializes a new instance of the BoundingBox class. returns null if the corner points don't match up correctly
public static BoundingBox Create(BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint topRight, ResultPoint bottomRight)
Parameters
image
BitMatrixThe image.
topLeft
ResultPointThe top left.
bottomLeft
ResultPointThe bottom left.
topRight
ResultPointThe top right.
bottomRight
ResultPointThe bottom right.
Returns
Create(BoundingBox)
Creates the specified box.
public static BoundingBox Create(BoundingBox box)
Parameters
box
BoundingBoxThe box.
Returns
addMissingRows(int, int, bool)
Adds the missing rows.
public BoundingBox addMissingRows(int missingStartRows, int missingEndRows, bool isLeft)
Parameters
missingStartRows
intMissing start rows.
missingEndRows
intMissing end rows.
isLeft
boolIf set to
true
is left.
Returns
- BoundingBox
The missing rows.