资源简介
opencv 行游戏手势控制源码。非常有用欢迎下载

代码片段和文件信息
#include “CVobject.h“
//Download by http://www.NewXing.com
#include
#include
#include
using namespace std;
void cvThresholdBidirection(IplImage* imgint lowerint upper)
{
assert(img->nChannels==1);
for (int h=0;hheight;h++){
for (int w=0;wwidth;w++){
unsigned char* p =(unsigned char*)(img->imageData+h*img->widthStep+w);
if (*p<=upper&&*p>=lower){
*p=255;
}else{
*p=0;
}
}
}
}
void cvFindTargets(const IplImage* img_const int erea_thresholdCvTarget &targets)
{
assert(img_->nChannels==1);
IplImage* img=cvCreateImage(cvSize(img_->widthimg_->height)IPL_DEPTH_8U1);
cvCopy(img_img);
CvTarget tar;
for (int h=0;hheight;h++){
for (int w=0;wwidth;w++){
if (*(unsigned char*)(img->imageData+h*img->widthStep+w)==255){
CvTarget target;
target.top=h;
target.bottom=h;
target.left=w;
target.right=w;
queue points;
points.push(cvPoint(wh));
*(img->imageData+h*img->widthStep+w)=0;
//find target with breadth iteration
while(!points.empty()){
target.erea++;
CvPoint p=points.front();
points.pop();
if (p.x>0&&*(unsigned char*)(img->imageData+p.y*img->widthStep+p.x-1)==255){//left
*(img->imageData+p.y*img->widthStep+p.x-1)=0;
points.push(cvPoint(p.x-1p.y));
if (target.left>p.x-1){
target.left=p.x-1;
}
}
if (p.y+1height&&*(unsigned char*)(img->imageData+(p.y+1)*img->widthStep+p.x)==255){//bottom
*(img->imageData+(p.y+1)*img->widthStep+p.x)=0;
points.push(cvPoint(p.xp.y+1));
if (target.bottom target.bottom=p.y+1;
}
}
if (p.x+1width&&*(unsigned char*)(img->imageData+p.y*img->widthStep+p.x+1)==255){//right
*(img->imageData+p.y*img->widthStep+p.x+1)=0;
points.push(cvPoint(p.x+1p.y));
if (target.right target.right=p.x+1;
}
}
if (p.y>0&&*(unsigned char*)(img->imageData+(p.y-1)*img->widthStep+p.x)==255){//top
*(img->imageData+(p.y-1)*img->widthStep+p.x)=0;
points.push(cvPoint(p.xp.y-1));
}
}
if (target.erea>erea_threshold){
if (target.erea>tar.erea){
tar=target;
}
}
}
}
}
targets=tar;
cvReleaseImage(&img);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2401 2011-01-21 19:37 OpenCV 飞行游戏手势控制源码\CVob
文件 762 2011-01-21 19:37 OpenCV 飞行游戏手势控制源码\CVob
文件 7078 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\BuildLog.htm
文件 141834 2010-11-30 09:11 OpenCV 飞行游戏手势控制源码\Debug\CVob
文件 131075 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\flyControl.obj
文件 87552 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\flyController.exe
文件 663 2010-11-30 09:11 OpenCV 飞行游戏手势控制源码\Debug\flyController.exe.em
文件 728 2010-11-30 09:11 OpenCV 飞行游戏手势控制源码\Debug\flyController.exe.em
文件 621 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\flyController.exe.intermediate.manifest
文件 598240 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\flyController.ilk
文件 1125376 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\flyController.pdb
文件 64 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\mt.dep
文件 658432 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\vc90.idb
文件 569344 2010-11-30 09:12 OpenCV 飞行游戏手势控制源码\Debug\vc90.pdb
文件 1385 2010-11-28 16:18 OpenCV 飞行游戏手势控制源码\feature\feature-hu-average.txt
文件 3127 2010-11-28 14:03 OpenCV 飞行游戏手势控制源码\feature\feature-hu-down.txt
文件 3135 2010-11-28 14:03 OpenCV 飞行游戏手势控制源码\feature\feature-hu-left.txt
文件 3074 2010-11-28 14:03 OpenCV 飞行游戏手势控制源码\feature\feature-hu-right.txt
文件 3144 2010-11-28 14:03 OpenCV 飞行游戏手势控制源码\feature\feature-hu-straight.txt
文件 3085 2010-11-28 14:03 OpenCV 飞行游戏手势控制源码\feature\feature-hu-up.txt
文件 1385 2010-11-28 16:22 OpenCV 飞行游戏手势控制源码\feature\feature-mesh-average.txt
文件 9972 2010-11-28 16:22 OpenCV 飞行游戏手势控制源码\feature\feature-mesh-down.txt
文件 9972 2010-11-28 16:22 OpenCV 飞行游戏手势控制源码\feature\feature-mesh-left.txt
文件 9972 2010-11-28 16:22 OpenCV 飞行游戏手势控制源码\feature\feature-mesh-right.txt
文件 9972 2010-11-28 16:22 OpenCV 飞行游戏手势控制源码\feature\feature-mesh-straight.txt
文件 9972 2010-11-28 16:22 OpenCV 飞行游戏手势控制源码\feature\feature-mesh-up.txt
文件 16120 2011-01-21 19:37 OpenCV 飞行游戏手势控制源码\flyControl.cpp
文件 891 2010-11-26 15:32 OpenCV 飞行游戏手势控制源码\flyController.sln
文件 4060 2010-11-26 16:11 OpenCV 飞行游戏手势控制源码\flyController.vcproj
文件 1423 2010-12-01 10:06 OpenCV 飞行游戏手势控制源码\flyController.vcproj.FOOLPP-REGION.Administrator.user
............此处省略187个文件信息
相关资源
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- opencv环境配置
- win10 64位下编译的opencv4.5.5库,opencv
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- 用两个摄像头实现,双目标定,双目
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- QT+opencv+OCR 身份证号码,银行卡号识别
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- 基于opencv的数人头程序源代码
- 利用OpenCV中的Stitcher类实现全景图像拼
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
- 基于OPENCV的车牌识别系统设计
- 617张国内车牌60-17bmp图片用于OpenCV正样
- hog特征提取,c版本代码
- 基于Qt5.8+OpenCV3.2的Basler多相机触发开
- 基于Opencv实现的图像纠偏
- ImageWatch2019.vsix
评论
共有 条评论