javaclient.structures
Class Blob
java.lang.Object
javaclient.structures.Blob
public class Blob
- extends java.lang.Object
Structure describing a single blob.
(see the player_blobfinder_blob structure from player.h)
- Version:
- v1.6.3 - Player 1.6.3 (all interfaces) supported
- v1.6.2 - Player 1.6.2 supported, Javadoc documentation, several bugfixes
- v1.5a - Player 1.5 supported (most popular devices)
- Author:
- Maxim A. Batalin & Radu Bogdan Rusu
Constructor Summary |
Blob()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Blob
public Blob()
getID
public short getID()
- Returns:
- blob ID
setID
public void setID(short newid)
- Parameters:
newid
- blob ID
getColor
public int getColor()
- Returns:
- a descriptive color for the blob (useful for gui's). The color is stored as packed 32-bit
RGB, i.e., 0x00RRGGBB.
setColor
public void setColor(int newcolor)
- Parameters:
newcolor
- a descriptive color for the blob (useful for gui's). The color must be packed
as a 32-bit RGB, i.e., 0x00RRGGBB.
getArea
public int getArea()
- Returns:
- the blob area (pixels)
setArea
public void setArea(int newarea)
- Parameters:
newarea
- the blob area (pixels)
getX
public short getX()
- Returns:
- the blob centroid (image coords, X)
setX
public void setX(short newx)
- Parameters:
newx
- the blob centroid (image coords, X)
getY
public short getY()
- Returns:
- the blob centroid (image coords, Y)
setY
public void setY(short newy)
- Parameters:
newy
- the blob centroid (image coords, Y)
getLeft
public short getLeft()
- Returns:
- bounding box for the blob (image coords, Left)
setLeft
public void setLeft(short newleft)
- Parameters:
newleft
- bounding box for the blob (image coords, Left)
getRight
public short getRight()
- Returns:
- bounding box for the blob (image coords, Right)
setRight
public void setRight(short newright)
- Parameters:
newright
- bounding box for the blob (image coords, Right)
getTop
public short getTop()
- Returns:
- bounding box for the blob (image coords, Top)
setTop
public void setTop(short newtop)
- Parameters:
newtop
- bounding box for the blob (image coords, Top)
getBottom
public short getBottom()
- Returns:
- bounding box for the blob (image coords, Bottom)
setBottom
public void setBottom(short newbottom)
- Parameters:
newbottom
- bounding box for the blob (image coords, Bottom)
getRange
public short getRange()
- Returns:
- range (mm) to the blob center
setRange
public void setRange(short newrange)
- Parameters:
newrange
- range (mm) to the blob center