//############################################################################# // John Girard, Lawrence Technological University // // VisibleObject: this object represents a visible region of color generated by // the AIBO vision subsystem. This object matches a pre-defined color // contained in ID, and has properties as passed down by its members. // // Revision History: // ---------------------------------------------------------------------------- // // (03/19/05) Created the class. // //############################################################################# #ifndef VisibleObject_h_DEFINED #define VisibleObject_h_DEFINED namespace LTUVision { class VisibleObject { public: // constructor for the class VisibleObject(int, double, double, int, double); // the identifier for this object, based on detected color int ID; // the centroid (center of gravity) of this region, in the context of // the raw image's width and height double X; double Y; // the number of pixels in this region, corresponding to area int Area; // the relative confidence of a match. this value will range from // zero to one, with one being a perfect (and improbable) match. double Density; }; //######################################################################### // construct a brand-new visible object. for simplicity, we assign all // values in the constructor //######################################################################### VisibleObject::VisibleObject(int iID, double dX, double dY, int iArea, double dDensity) { ID = iID; X = dX; Y = dY; Area = iArea; Density = dDensity; } } #endif