javaclient.structures
Class Blob

java.lang.Object
  extended by 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:
Author:
Maxim A. Batalin & Radu Bogdan Rusu

Constructor Summary
Blob()
           
 
Method Summary
 int getArea()
           
 short getBottom()
           
 int getColor()
           
 short getID()
           
 short getLeft()
           
 short getRange()
           
 short getRight()
           
 short getTop()
           
 short getX()
           
 short getY()
           
 void setArea(int newarea)
           
 void setBottom(short newbottom)
           
 void setColor(int newcolor)
           
 void setID(short newid)
           
 void setLeft(short newleft)
           
 void setRange(short newrange)
           
 void setRight(short newright)
           
 void setTop(short newtop)
           
 void setX(short newx)
           
 void setY(short newy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blob

public Blob()
Method Detail

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