资源简介
ASM人脸特征点提取,opencv2.0版本以上

代码片段和文件信息
#include “afreader.h“
namespace StatModel {
//! Constructor. Opens the file.
/**
@author Mikkel B. Stegmann
@version 4-17-2000
@param filename The file to open.
@return Nothing.
*/
AFReader::AFReader( const char *filename ):
CR(0x0a) LF(0x0d) COMMENT_CHAR(‘#‘) {
fh = fopen( filename “rb“ );
}
//! Destructor. Closes the file.
/**
@author Mikkel B. Stegmann
@version 4-17-2000
@return Nothing.
*/
AFReader::~AFReader() {
// puts(“Closing file“);
if (fh) fclose(fh);
}
//! Increments the file pointer beyond any white space.
/**
@author Mikkel B. Stegmann
@version 4-17-2000
@return Nothing.
*/
void AFReader::SkipWhiteSpace() {
int ch;
do {
ch=fgetc( fh );
} while( ch==‘ ‘ || ch==‘\t‘ || ch==CR || ch==LF );
ungetc( ch fh );
}
//! Increments the file pointer to the start of the next line.
/**
@author Mikkel B. Stegmann
@version 4-17-2000
@return Nothing.
*/
void AFReader::SkipRestOfLine() {
int ch;
do {
ch=fgetc( fh );
} while( ch!=EOF && ch!=CR && ch!=LF );
ungetc( ch fh );
SkipWhiteSpace();
}
//! Returns true if more white space is present on the current line.
/**
@author Mikkel B. Stegmann
@version 4-17-2000
@return Nothing.
*/
bool AFReader::MoreNonWhiteSpaceOnLine() {
char buf[256];
int ch n_gets = 0;
bool non_white = false;
do {
ch=fgetc( fh );
buf[n_gets++] = ch;
if ( ch!=‘\t‘ && ch!=‘ ‘ && ch!=CR && ch!=LF && ch!=EOF) {
non_white = true; break;
}
} while( ch!=EOF && ch!=CR && ch!=LF );
for(int i=0;i ungetc( buf[--n_gets] fh );
return non_white;
}
//! Increments the file pointer beyond any comments.
/**
@author Mikkel B. Stegmann
@version 4-17-2000
@return Nothing.
*/
void AFReader::SkipComments() {
int ch;
ch = getc( fh );
if ( ch==COMMENT_CHAR ) {
SkipRestOfLine();
SkipComments();
} else {
ungetc( ch fh );
}
}
} // Namespace
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2057 2015-11-08 10:12 ASM\ASM\afreader.cpp
文件 797 2015-11-08 10:12 ASM\ASM\afreader.h
文件 91507 2017-05-23 20:52 ASM\ASM\asm.jpg
文件 6153 2017-05-12 21:04 ASM\ASM\ASM.vcxproj
文件 3953 2017-05-12 21:04 ASM\ASM\ASM.vcxproj.filters
文件 434 2017-05-23 16:57 ASM\ASM\ASM.vcxproj.user
文件 14996 2015-11-08 10:12 ASM\ASM\asmmodel.cpp
文件 4385 2015-11-08 10:12 ASM\ASM\asmmodel.h
文件 321 2015-11-08 10:12 ASM\ASM\CMakeLists.txt
文件 507830 2015-11-08 10:12 ASM\ASM\data\color_asm68.model
文件 584162 2015-11-08 10:12 ASM\ASM\data\color_asm75.model
文件 431232 2015-11-08 10:12 ASM\ASM\data\grayall_asm.model
文件 388301 2015-11-08 10:12 ASM\ASM\data\grey_asm.model
文件 919871 2015-11-08 10:12 ASM\ASM\data\haarcascade_frontalface_alt.xm
文件 837462 2013-12-28 05:39 ASM\ASM\data\haarcascade_frontalface_alt2.xm
文件 801512 2013-12-28 05:39 ASM\ASM\data\haarcascade_mcs_lefteye.xm
文件 1425365 2013-12-28 05:39 ASM\ASM\data\haarcascade_mcs_righteye.xm
文件 38 2015-11-08 10:12 ASM\ASM\data\muct\download\README.txt
文件 1438 2015-11-08 10:12 ASM\ASM\data\muct\genPTS.py
文件 286 2015-11-08 10:12 ASM\ASM\data\muct\muct76.def
文件 651 2015-11-08 10:12 ASM\ASM\data\muct\prepare.sh
文件 1207 2015-11-08 10:12 ASM\ASM\data\muct\README.txt
文件 610692 2015-11-08 10:12 ASM\ASM\data\muct76.model
文件 2178 2013-12-28 05:39 ASM\ASM\data\README.txt
文件 10853 2017-05-23 16:04 ASM\ASM\Debug\afreader.obj
文件 1720 2017-05-23 16:03 ASM\ASM\Debug\ASM.Build.CppClean.log
文件 2911 2017-05-23 20:51 ASM\ASM\Debug\ASM.log
文件 188 2017-05-23 20:51 ASM\ASM\Debug\ASM.tlog\ASM.lastbuildstate
文件 7254 2017-05-23 20:51 ASM\ASM\Debug\ASM.tlog\cl.command.1.tlog
文件 188884 2017-05-23 20:51 ASM\ASM\Debug\ASM.tlog\CL.read.1.tlog
............此处省略47个文件信息
相关资源
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 用VC 编写的仿QQ聊天室程序源代码
- 外点法程序
- 外罚函数程序
- qt-电子点菜系统
- 推箱子及人工智能寻路C 源代码
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
-
ob
jectARX给Auto CAD加工具条 - 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- c 课程设计 职工信息管理系统
- 基于OpenCV的数字识别468815
- VC 游戏编程—附源代码
- 使用opencv去掉二值化图像中黑色面积
- IpHlpApi.h&IpHlpApi.lib
- 清华大学 c 郑莉 ppt课件
- c 程序判断离散数学中命题公式
- 多项式求和(数据结构C 版)
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
评论
共有 条评论