|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevs.visionpackage.org.cmotch.robovision.VisionObject
public class VisionObject
Class that represents an object seen by the robot
| Field Summary | |
|---|---|
static int |
CENTRE
|
static int |
LEFT
|
static int |
NO_DATA
|
static int |
RIGHT
|
| Constructor Summary | |
|---|---|
VisionObject(VisionImage visionImage,
byte colour)
Constructor |
|
| Method Summary | |
|---|---|
int |
getBottom()
Get the position of the bottom most pixel in our object |
java.awt.Point |
getCentre()
Get the position of the centre of our object |
byte |
getColour()
Get the colour of this object |
int |
getLeft()
Get the position of the left most pixel in our object |
int |
getPosition()
Get the position of the object, i.e. |
int |
getRight()
Get the position of the right most pixel in our object |
int |
getTop()
Get the position of the top most pixel in our object |
void |
setDebugLevel(int debugLevel)
Set the debug level to ouput information |
void |
setLeftMargin(int margin)
Set the left hand margin value. |
void |
setRightMargin(int margin)
Set the right hand margin value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_DATA
public static final int CENTRE
public static final int LEFT
public static final int RIGHT
| Constructor Detail |
|---|
public VisionObject(VisionImage visionImage,
byte colour)
visionImage - The image to analysecolour - The colour of the object we're interested in| Method Detail |
|---|
public byte getColour()
public int getPosition()
public int getLeft()
public int getRight()
public int getTop()
public int getBottom()
public java.awt.Point getCentre()
public void setLeftMargin(int margin)
margin - The percentage of the image width that is the left marginpublic void setRightMargin(int margin)
margin - The percentage of the image width that is the left marginpublic void setDebugLevel(int debugLevel)
debugLevel - The debug level to use 1=less messages, 3 is max
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||