probcontour.h

来自「关于时下流行的粒子滤波程序的源码」· C头文件 代码 · 共 55 行

H
55
字号
//////////////////////////////////////////////////////////////////////////////////////
//
//	Header file  of Probabilistic Contour Extraction Approach
//
//	XinFan 2003.5.26
//
//Reference:
//	[1] P. Pérez, A. Blake, and M. Gangnet. 
//		JetStream: Probabilistic contour extraction with particles. 
//		Proc. Int. Conf. on Computer Vision (ICCV),  II:524-531, 2001.
//////////////////////////////////////////////////////////////////////////////////////

#ifndef _PROBCONTOUR_H
#define	_PROBCONTOUR_H

#include "JetStream.h"
#include "AAMShape.h"

//////////////////////////////////////////////////////////////////////////////////////
//
//	Interface for Jetstream algorithm
//
//////////////////////////////////////////////////////////////////////////////////////
void cvrJetInitPara(JETPARA *jetPara, const CJetImgData *jetData = 0);
void cvrJetInitData(const void * src, CJetImgData *jetData);


//////////////////////////////////////////////////////////////////////////////////////
//
//	For Particle filters
//
//////////////////////////////////////////////////////////////////////////////////////
void cvrParticleIteration(CParticle *cvrParticle, int nStep);
void cvrStreamIter(CJetStream *cvrStream, int nStartStep, int nEndStep);

/////////////////////////////////////////////////////////////////////////////////////
// Contour retrieve and drawing
/////////////////////////////////////////////////////////////////////////////////////
void cvrProbContour(void *srcImg, const CParticle *cvParticle, int nStep);
void cvrDrawFaceContour(void *srcImg, 
					 const CParticle *cvParticle, 
					 int nStep, 
					 const std::vector<CAAMShape::CAAMPointInfo> &ptInfo,
					 const CString &szPathName);
void DrawAAMShape(void *srcImg, const CAAMShape &shape);


///////////////////////////////////////////////////////////////////////////////////
// Drawing functions
////////////////////////////////////////////////////////////////////////////////////
void DrawCross(void *srcImg, int *point, int cross_width);
void DrawCross(void *srcImg, long *point, int cross_width);
void DrawCross(void *srcImg, float *point, int cross_width);
void DrawCircle(void *srcImg, int *point, int radius = 3);
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?