|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiewald_CV_kit.utility.BoundingBox
public final class BoundingBox
Constructor Summary | |
---|---|
BoundingBox()
generate a new bounding-box. |
|
BoundingBox(int x_min,
int y_min,
int x_max,
int y_max)
generate a new bounding-box, and define its bounds. |
Method Summary | |
---|---|
boolean |
inside(int x,
int y)
check if the given coordinate is inside the bounding-box. |
boolean |
inside(Pixel p)
check if the given pixel is inside the bounding-box |
void |
set(int x_min,
int y_min,
int x_max,
int y_max)
set the bounds of the bounding-box. |
float |
xCenter()
|
int |
xMax()
|
int |
xMin()
|
int |
xSize()
|
float |
yCenter()
|
int |
yMax()
|
int |
yMin()
|
int |
ySize()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundingBox()
public BoundingBox(int x_min, int y_min, int x_max, int y_max)
x_min
- minimum x-pos of the bounding-box.y_min
- minimum y-pos of the bounding-box.x_max
- maximum x-pos of the bounding-box.y_max
- maximum y-pos of the bounding-box.Method Detail |
---|
public final void set(int x_min, int y_min, int x_max, int y_max)
x_min
- minimum x-pos of the bounding-box.y_min
- minimum y-pos of the bounding-box.x_max
- maximum x-pos of the bounding-box.y_max
- maximum y-pos of the bounding-box.public final boolean inside(int x, int y)
x
- x-coordinate.y
- y-coordinate.
public final boolean inside(Pixel p)
p
- the pixel to check for.
public final int xMin()
public final int yMin()
public final int xMax()
public final int yMax()
public final int xSize()
public final int ySize()
public final float xCenter()
public final float yCenter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |