📄 probcontour.h
字号:
//////////////////////////////////////////////////////////////////////////////////////
//
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -