|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient.PlayerDevice
javaclient.BlobfinderInterface
public class BlobfinderInterface
The blobfinder interface provides access to devices that detect blobs in images.
Field Summary | |
---|---|
short |
PLAYER_BLOBFINDER_MAX_BLOBS
the maximum number of blobs in total |
Fields inherited from class javaclient.PlayerDevice |
---|
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
Constructor Summary | |
---|---|
BlobfinderInterface(PlayerClient pc,
short indexOfDevice)
Constructor for BlobfinderInterface. |
Method Summary | |
---|---|
Blob |
getBlob(int i)
Get a specified blob. |
short |
getBlobCount()
Get the number of valid blobs. |
Blob[] |
getBlobs()
Get all the blobs. |
short |
getImageHeight()
Get image height in pixels. |
short |
getImageWidth()
Get image width in pixels. |
void |
handleResponse(int size)
Handle acknowledgement response messages (threaded mode). |
void |
readData()
Read the list of detected blobs. |
void |
setImagerParams(int brightness,
int contrast,
int colormode,
int autogain)
Configuration request: Set imager params. |
void |
setTrackingColor(int rmin,
int rmax,
int gmin,
int gmax,
int bmin,
int bmax)
Configuration request: Set tracking color. |
Methods inherited from class javaclient.PlayerDevice |
---|
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, readHeader, sendHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final short PLAYER_BLOBFINDER_MAX_BLOBS
Constructor Detail |
---|
public BlobfinderInterface(PlayerClient pc, short indexOfDevice)
pc
- a reference to the PlayerClient objectindexOfDevice
- the index of the deviceMethod Detail |
---|
public void readData()
readData
in class PlayerDevice
public void setTrackingColor(int rmin, int rmax, int gmin, int gmax, int bmin, int bmax)
rmin
- Red minimum value (0-255)rmax
- Red maximum value (0-255)gmin
- Green minimum value (0-255)gmax
- Green maximum value (0-255)bmin
- Blue minimum value (0-255)bmax
- Blue maximum value (0-255)public void setImagerParams(int brightness, int contrast, int colormode, int autogain)
brightness
- brightness value (0-255)contrast
- contrast value (0-255)colormode
- color mode (0=RGB/AWB off, 1=RGB/AWB on, 2=YCrCB/AWB off, 3=YCrCb/AWB on)autogain
- auto gain (0=off, 1=on)public short getImageWidth()
public short getImageHeight()
public short getBlobCount()
public Blob[] getBlobs()
public Blob getBlob(int i)
i
- the number of blob from the blob array
public void handleResponse(int size)
handleResponse
in class PlayerDevice
size
- size of the payload
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |