www.pudn.com > backmode824.rar > Blob.h
#include "cv.h"
// Blob.h: interface for the Blob class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BLOB_H__20EB4841_7070_4274_9138_5AAC5045E266__INCLUDED_)
#define AFX_BLOB_H__20EB4841_7070_4274_9138_5AAC5045E266__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class Blob
{
public:
Blob();
virtual ~Blob();
void RenderBB(IplImage *pImg, CvScalar color, int bVerts = FALSE);
CvPoint centroid;
CvPoint bbTopLeft, bbBottomRight;
int mass;
CvPoint *hull;
int nHull;
int id; // connected component id
int user; // meaningless data storage for external use
bool bMatched; // used in tracking
protected:
};
#endif // !defined(AFX_BLOB_H__20EB4841_7070_4274_9138_5AAC5045E266__INCLUDED_)