final class BoundingBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ResultPoint |
bottomLeft |
private ResultPoint |
bottomRight |
private BitMatrix |
image |
private int |
maxX |
private int |
maxY |
private int |
minX |
private int |
minY |
private ResultPoint |
topLeft |
private ResultPoint |
topRight |
Constructor and Description |
---|
BoundingBox(BitMatrix image,
ResultPoint topLeft,
ResultPoint bottomLeft,
ResultPoint topRight,
ResultPoint bottomRight) |
BoundingBox(BoundingBox boundingBox) |
Modifier and Type | Method and Description |
---|---|
(package private) BoundingBox |
addMissingRows(int missingStartRows,
int missingEndRows,
boolean isLeft) |
(package private) ResultPoint |
getBottomLeft() |
(package private) ResultPoint |
getBottomRight() |
(package private) int |
getMaxX() |
(package private) int |
getMaxY() |
(package private) int |
getMinX() |
(package private) int |
getMinY() |
(package private) ResultPoint |
getTopLeft() |
(package private) ResultPoint |
getTopRight() |
(package private) static BoundingBox |
merge(BoundingBox leftBox,
BoundingBox rightBox) |
private final BitMatrix image
private final ResultPoint topLeft
private final ResultPoint bottomLeft
private final ResultPoint topRight
private final ResultPoint bottomRight
private final int minX
private final int maxX
private final int minY
private final int maxY
BoundingBox(BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint topRight, ResultPoint bottomRight) throws NotFoundException
NotFoundException
BoundingBox(BoundingBox boundingBox)
static BoundingBox merge(BoundingBox leftBox, BoundingBox rightBox) throws NotFoundException
NotFoundException
BoundingBox addMissingRows(int missingStartRows, int missingEndRows, boolean isLeft) throws NotFoundException
NotFoundException
int getMinX()
int getMaxX()
int getMinY()
int getMaxY()
ResultPoint getTopLeft()
ResultPoint getTopRight()
ResultPoint getBottomLeft()
ResultPoint getBottomRight()