資源簡介
手勢控制鼠標 opencv 源碼
手勢控制鼠標 opencv 源碼
代碼片段和文件信息
/*
?*?@?Author:?onezeros@yahoo.cn
?*?@?blog??:?blog.csdn.net/onezeros
?*?@?Date??:?12/12/2010
?*?@?Note??:?You?can?use?this?program?for?any?purpose?if?you?keep?this?note.?
?* ?I‘ll?appreciate?if?you?can?email?bugs?to?me.
?* ?Have?A?Nice?Day!
?*/
#include?“stdafx.h“
#include?“CVobject.h“
#include?
#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?cvCvtWhite2RGB(IplImage*srcIplImage*?dst)
{
assert(s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4398??2011-01-02?10:16??AnotherMouseController\AnotherMouseController.vcproj
?????文件????????909??2011-01-02?09:29??AnotherMouseController\AnotherMouseController.sln
????..A..H.?????13312??2011-01-02?18:55??AnotherMouseController\AnotherMouseController.suo
?????文件???????1412??2011-01-02?18:55??AnotherMouseController\AnotherMouseController.vcproj.ONEZEROS.Administrator.user
?????文件????????406??2010-12-15?08:53??AnotherMouseController\stdafx.h
?????文件????????498??2010-12-15?08:52??AnotherMouseController\targetver.h
?????文件???????1213??2010-12-15?08:52??AnotherMouseController\ReadMe.txt
?????文件????????217??2010-12-15?08:52??AnotherMouseController\stdafx.cpp
?????文件??????21232??2011-01-02?09:50??AnotherMouseController\simulateTheKeyWitchCanControlMouseInLaptop.JPG
?????文件?????123904??2011-01-02?18:55??AnotherMouseController\Debug\AnotherMouseController.exe
?????文件???????5478??2011-01-02?14:05??AnotherMouseController\CVob
?????文件???????6716??2011-01-02?18:54??AnotherMouseController\mouseController.cpp
?????文件???????1187??2011-01-02?18:55??AnotherMouseController\CVob
?????目錄??????????0??2011-01-02?10:11??AnotherMouseController\Debug
?????目錄??????????0??2011-01-02?09:29??AnotherMouseController
-----------?---------??----------?-----??----
???????????????180882????????????????????15
評論
共有 條評論