CMUcam4 Arduino Interface Library
For Firmware Versions 1.00 - 1.03
Application Programmable Interface Online Documentation
|
CMUcam4 tracking data structure. More...
#include <CMUcam4.h>
Public Attributes | |
int | mx |
The middle mass X position of the tracked pixels - [0:159]. | |
int | my |
The middle mass Y position of the tracked pixels - [0:119]. | |
int | x1 |
The upper left X coordinate of the bounding box - [0:159]. | |
int | y1 |
The upper left Y coordinate of the bounding box - [0:119]. | |
int | x2 |
The bottom right X coordinate of the bounding box - [X1:159]. | |
int | y2 |
The bottom right Y coordinate of the bounding box - [Y1:119]. | |
int | pixels |
The percentage of tracked pixels in the image - [0:255]. | |
int | confidence |
The density of tracked pixels in the image - [0:255]. |
CMUcam4 tracking data structure.
The middle mass is also called the centroid and is the average position of all the tracked pixels in the image. The bounding box surrounds all the tracked pixels in the image. The pixels
value can be used to infer the size or distance of the color blob of tracked pixels - the higher the pixels
then the larger or closer the color blob. The confidence
value can be used to infer the density or quality of the lock on the target color blob of tracked pixels - the higher the confidence
then the better the lock on the color blob.