锘??xml version="1.0" encoding="utf-8" standalone="yes"?>青青青青久久精品国产h,精品久久久久久无码人妻热
,伊人伊成久久人综合网777http://m.shnenglu.com/wmgl/archive/2012/04/06/170263.htmlnoBugnoGainnoBugnoGainFri, 06 Apr 2012 05:32:00 GMThttp://m.shnenglu.com/wmgl/archive/2012/04/06/170263.htmlhttp://m.shnenglu.com/wmgl/comments/170263.htmlhttp://m.shnenglu.com/wmgl/archive/2012/04/06/170263.html#Feedback0http://m.shnenglu.com/wmgl/comments/commentRss/170263.htmlhttp://m.shnenglu.com/wmgl/services/trackbacks/170263.html
#define N 6

HANDLE hSuspend[N], hResume[N];
HANDLE hSuspend_one;
HANDLE hResume_one;

struct info


{
CRITICAL_SECTION ProtectSection;
int id;
int frames;
};


unsigned long __stdcall testFun(void *pContext)


{
info* pInfo = (info*)pContext;
while(1)

{
EnterCriticalSection(&pInfo->ProtectSection);
pInfo->frames++;
//printf("run sub Thread video %d frames %d\n", pInfo->id, pInfo->frames);
// DWORD rtn = WaitForSingleObject(hSuspend[pInfo->id], INFINITE);
DWORD rtn = WaitForSingleObject(hSuspend_one, INFINITE);
if (WAIT_OBJECT_0 == rtn)

{// 鑷繁鏆傚仠鑷繁
// printf("stop sub Thread video %d frames %d\n", pInfo->id, pInfo->frames);
WaitForSingleObject(hResume[pInfo->id], INFINITE);
//WaitForSingleObject(hResume_one, INFINITE);
}
LeaveCriticalSection(&pInfo->ProtectSection);
}
return 0;
}


int main()


{
DWORD thid;
HANDLE hand[N];
int mainframes = 0;
info myInfo[N];

hSuspend_one = CreateEvent(NULL, TRUE, FALSE, NULL);
for(int i = 0; i < N; i++)

{
hSuspend[i] = CreateEvent(NULL, TRUE, FALSE, NULL);
hResume[i] = CreateEvent(NULL, FALSE, FALSE, NULL);
myInfo[i].id = i;
myInfo[i].frames = 0;
InitializeCriticalSection(&myInfo[i].ProtectSection);
}
for(int i = 0; i < N; i++)

{
hand[i] = CreateThread( NULL, NULL, testFun, &myInfo[i], CREATE_SUSPENDED, &thid);
}

for(int i = 0; i < N; i++)

{
ResumeThread(hand[i]);
}
while(1)

{
printf("main thread frames %d\n", ++mainframes);

/**//*for(int i = 0; i < N; i++)
{
SetEvent(hSuspend[i]);
}*/
SetEvent(hSuspend_one);
Sleep(5);
for(int i = 0; i < N; i++)

{
printf("main thread video %d frames %d\n",myInfo[i].id,myInfo[i].frames);
}
printf("\n");
for(int i = 0; i < N; i++)

{
SetEvent(hResume[i]);
}
}
for(int i = 0; i < N; i++)

{
WaitForSingleObject(hand[i], INFINITE);
DeleteCriticalSection( &myInfo[i].ProtectSection);
CloseHandle(hand[i]);
CloseHandle(hResume[i]);
CloseHandle(hSuspend[i]);
}
CloseHandle(hSuspend_one);
return 0;
}

]]>- 鐢╟uda鎿嶄綔IplImage涓殑鏁版嵁http://m.shnenglu.com/wmgl/archive/2009/12/28/104258.htmlnoBugnoGainnoBugnoGainMon, 28 Dec 2009 02:58:00 GMThttp://m.shnenglu.com/wmgl/archive/2009/12/28/104258.htmlhttp://m.shnenglu.com/wmgl/comments/104258.htmlhttp://m.shnenglu.com/wmgl/archive/2009/12/28/104258.html#Feedback1http://m.shnenglu.com/wmgl/comments/commentRss/104258.htmlhttp://m.shnenglu.com/wmgl/services/trackbacks/104258.html
1
#include <cutil_inline.h>
2
#include <cv.h>
3
#include <cstdio>
4
#include <iostream>
5
#include <cutil.h>
6
#include <ctime>
7
#include <cstdlib>
8
#include <highgui.h>
9
#include <windows.h>
10
11
#pragma comment(lib, "cuda.lib")
12
#pragma comment(lib, "cudart.lib")
13
#pragma comment(lib, "cutil32.lib")
14
#pragma comment(lib, "cv.lib")
15
#pragma comment(lib, "cxcore.lib")
16
#pragma comment(lib, "highgui.lib")
17
18
using namespace std;
19
20
__global__ void mainKernel(unsigned char *d_data, int widthStep, int width, int height)
21

{
22
unsigned int x = blockIdx.x*blockDim.x+threadIdx.x;
23
unsigned int y = blockIdx.y*blockDim.y+threadIdx.y;
24
if( x>0 && x < width && y>0 && y < height )
25
{
26
d_data[y*widthStep+x*3+0] ^= ( ((x&0x0F)==0) ^ ((y&0x0F)==0) ) *255;
27
d_data[y*widthStep+x*3+1] ^= ( ((x&0x0F)==0) ^ ((y&0x0F)==0) ) *255;
28
d_data[y*widthStep+x*3+2] ^= ( ((x&0x0F)==0) ^ ((y&0x0F)==0) ) *255;
29
}
30
}
31
32
int main()
33

{
34
IplImage* src = cvLoadImage("IMG_03.JPG");
35
36
int widthStep = src->widthStep;
37
int width = src->width;
38
int height = src->height;
39
40
printf("before widthStep = %d\n", widthStep);
41
if( widthStep%4 != 0)
42
{
43
widthStep = (1+widthStep/4)*4;
44
}
45
printf("after widthStep = %d\n", widthStep);
46
47
unsigned char* d_img_data;
48
CUDA_SAFE_CALL(cudaMalloc((void**)&d_img_data, widthStep*height));
49
CUDA_SAFE_CALL(cudaMemcpy(d_img_data, src->imageData, widthStep*height, cudaMemcpyHostToDevice));
50
51
dim3 dimBlock(16, 16, 1);
52
dim3 dimGrid( (width+dimBlock.x-1)/dimBlock.x, (height+dimBlock.y-1)/dimBlock.y );
53
mainKernel<<<dimGrid, dimBlock, 0>>>(d_img_data, widthStep, width, height);
54
CUDA_SAFE_CALL(cudaThreadSynchronize());
55
56
CUDA_SAFE_CALL( cudaMemcpy( src->imageData, d_img_data, widthStep*height, cudaMemcpyDeviceToHost) );
57
58
cvNamedWindow("test",CV_WINDOW_AUTOSIZE);
59
cvShowImage("test",src);
60
cvWaitKey(0);
61
cvDestroyAllWindows();
62
63
cvReleaseImage(&src);
64
CUDA_SAFE_CALL(cudaFree(d_img_data));
65
return 0;
66
}

]]> - opencv鑱斿悎cuda榪涜鍥懼儚娣峰悎鎿嶄綔http://m.shnenglu.com/wmgl/archive/2009/12/25/104027.htmlnoBugnoGainnoBugnoGainFri, 25 Dec 2009 02:48:00 GMThttp://m.shnenglu.com/wmgl/archive/2009/12/25/104027.htmlhttp://m.shnenglu.com/wmgl/comments/104027.htmlhttp://m.shnenglu.com/wmgl/archive/2009/12/25/104027.html#Feedback9http://m.shnenglu.com/wmgl/comments/commentRss/104027.htmlhttp://m.shnenglu.com/wmgl/services/trackbacks/104027.html闃呰鍏ㄦ枃

]]> - SIFT灝哄害絀洪棿http://m.shnenglu.com/wmgl/archive/2009/07/04/89220.htmlnoBugnoGainnoBugnoGainSat, 04 Jul 2009 05:09:00 GMThttp://m.shnenglu.com/wmgl/archive/2009/07/04/89220.htmlhttp://m.shnenglu.com/wmgl/comments/89220.htmlhttp://m.shnenglu.com/wmgl/archive/2009/07/04/89220.html#Feedback3http://m.shnenglu.com/wmgl/comments/commentRss/89220.htmlhttp://m.shnenglu.com/wmgl/services/trackbacks/89220.html
GSS and DoG scale space structures
GSS:Gaussian scale space錛堥珮鏂昂搴︾┖闂達級
DoG: Difference of Gaussians錛堥珮鏂樊鍒嗭級
octave index:灞傜儲寮?br>scale index:灝哄害绱㈠紩
寤虹珛鍥懼儚鐨勯珮鏂昂搴︾┖闂村叾瀹炲氨鏄敤楂樻柉鏍稿鍥懼儚榪涜鍗風Н錛屼竴灞備竴灞傜殑騫蟲粦鍥懼儚錛屼竴灞傚張鍒嗚嫢騫蹭釜scale. 姣忎釜scale鐨勯噰鏍鋒闀夸負錛?br>
寤虹珛濂介珮鏂昂搴︾┖闂村悗錛屽啀閫氳繃寤虹珛楂樻柉宸垎灝哄害絀洪棿瀵繪壘鍥懼儚鐨勫眬閮ㄦ瀬鍊箋傞珮鏂樊鍒嗗昂搴︾┖闂村緩绔嬪緢綆鍗曪紝瀵歸珮鏂昂搴︾┖闂寸殑榪炵畫鍥懼儚鐩稿噺灝卞彲浠ヤ簡銆傚叿浣撳叕寮忓涓?
.
鏋佸肩殑紜畾濡傚浘錛?br> 
鍦ㄥ浘鍍忛珮鏂樊鍒嗗昂搴︾┖闂村唴褰撳墠灝哄害鍜屽叾鐩擱偦涓や釜灝哄害3*3鐨勫尯鍩熷唴錛屾爣璁扮殑X鍜屽叾浠?6涓儚绱犳瘮杈冿紝濡傛灉X鐨勭伆搴﹀ぇ浜庢垨鑰呭皬浜庡叾浠?6涓儚绱犮傞偅涔堣繖涓猉灝辨槸涓瀬鍊箋?br> 寤虹珛楂樻柉灝哄害絀洪棿鏈変簺緇嗚妭鐨勯棶棰橈紝鍏蜂綋鍙互鐪婦avid G.low鐨勮鏂囥?/strong>

]]> - 閭d簺騫達紝閭d簺浜嬪効銆?/title>http://m.shnenglu.com/wmgl/archive/2009/05/13/82852.htmlnoBugnoGainnoBugnoGainWed, 13 May 2009 11:02:00 GMThttp://m.shnenglu.com/wmgl/archive/2009/05/13/82852.htmlhttp://m.shnenglu.com/wmgl/comments/82852.htmlhttp://m.shnenglu.com/wmgl/archive/2009/05/13/82852.html#Feedback3http://m.shnenglu.com/wmgl/comments/commentRss/82852.htmlhttp://m.shnenglu.com/wmgl/services/trackbacks/82852.html 閭d簺騫達紝闈掓訂涓ヨ們錛岀悊鎯抽珮榪溿?br> 閭d簺騫達紝闈掑北宸嶅敞錛屾澗鏌忔稕娑涖?br> 閭d簺騫達紝絎戝0鐩堢泩錛岄珮璋堥様璁恒?br> 閭d簺騫達紝鐧藉闈掔摝錛岀豢鍦扮孩鑺便?br> 閭d簺騫達紝鐧借。濂沖瓙錛屽悰瀛愬ソ閫戙?br> 閭d簺浜嬪効錛岄偅浜涘勾鐨勪簨鍎匡紝閮界鎴戜滑娓愭笎榪滃幓銆傚氨璁╁ス鍘誨惂錛屽甫鐫濂圭殑緹庝附鍜岀瑧瀹癸紝甯︾潃濂圭殑瀹藉鍜屽崥鐖便?br> 閫濆幓涔嬫墍浠ョ編涓斤紝閭d簺騫達紝閭d簺浜嬪効閮戒笉鍐嶆潵銆?

]]> - 澶辮惤鐨勬槦鐞冦傘傘?/title>http://m.shnenglu.com/wmgl/archive/2009/04/25/81072.htmlnoBugnoGainnoBugnoGainSat, 25 Apr 2009 13:36:00 GMThttp://m.shnenglu.com/wmgl/archive/2009/04/25/81072.htmlhttp://m.shnenglu.com/wmgl/comments/81072.htmlhttp://m.shnenglu.com/wmgl/archive/2009/04/25/81072.html#Feedback2http://m.shnenglu.com/wmgl/comments/commentRss/81072.htmlhttp://m.shnenglu.com/wmgl/services/trackbacks/81072.html
]]>
亚洲成色999久久网站|
久久久久噜噜噜亚洲熟女综合|
亚洲av伊人久久综合密臀性色|
无码人妻久久一区二区三区免费|
国产精品久久久久久搜索|
久久精品三级视频|
国产99久久久国产精品小说|
久久精品国产99久久无毒不卡|
亚洲嫩草影院久久精品|
久久久精品国产|
精品欧美一区二区三区久久久
|
国产精品美女久久久m|
国产成人99久久亚洲综合精品|
久久国产欧美日韩精品|
97精品伊人久久久大香线蕉
|
色综合久久88色综合天天|
伊人久久精品影院|
亚洲综合精品香蕉久久网97|
国产精品成人久久久|
丁香五月综合久久激情|
久久久久久久亚洲Av无码|
老司机午夜网站国内精品久久久久久久久|
精品综合久久久久久97|
亚洲国产精品综合久久网络|
国产成人精品久久亚洲高清不卡
国产成人精品久久亚洲高清不卡
国产成人精品久久亚洲
|
国产精品99久久久久久宅男小说|
97久久精品人人澡人人爽|
999久久久免费精品国产|
亚洲精品无码久久久久久|
国产免费久久精品99re丫y|
一本久久免费视频|
无码精品久久一区二区三区
|
国产精品一区二区久久精品涩爱|
久久精品成人免费观看97|
国产叼嘿久久精品久久|
国产99久久九九精品无码|
久久国产精品久久国产精品|
青青青伊人色综合久久|
国产精品久久久久久久午夜片|
亚洲国产成人久久综合一
|
无码8090精品久久一区|