www.pudn.com > Product_Submit2004.rar > VisionObject.cc, change:2004-04-22,size:656b


#include "VisionObject.h" 
#include "Common.h" 
#include <math.h> 
 
 
VisionObject::VisionObject() { 
  type_ = OT_INVALID; 
  heading_ = 0; 
  elevation_ = 0; 
  distance_ = 0; 
  centreX_ = 0;  
  centreY_ = 0; 
  confidence_ = 0; 
} 
VisionObject::~VisionObject() {  
} 
  
 
void VisionObject::SetData(ObjectType type, Blob* topBlob, Blob* bottomBlob, double heading, double elevation, double distance, int cx, int cy, int confidence) { 
  type_ = type; 
  topBlob_ = topBlob; 
  bottomBlob_ = bottomBlob; 
  heading_ = heading; 
  elevation_ = elevation; 
  distance_ = distance; 
  centreX_ = cx; 
  centreY_ = cy;  
  confidence_ = confidence; 
}