锘??xml version="1.0" encoding="utf-8" standalone="yes"?>Xx性欧美肥妇精品久久久久久
,2020最新久久久视精品爱,国产成人香蕉久久久久http://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錛堥珮鏂昂搴︾┖闂達(dá)級(jí)
DoG: Difference of Gaussians錛堥珮鏂樊鍒嗭級(jí)
octave index:灞傜儲(chǔ)寮?br>scale index:灝哄害绱㈠紩
寤虹珛鍥懼儚鐨勯珮鏂昂搴︾┖闂村叾瀹炲氨鏄敤楂樻柉鏍稿鍥懼儚榪涜鍗風(fēng)Н錛屼竴灞備竴灞傜殑騫蟲(chóng)粦鍥懼儚錛屼竴灞傚張鍒嗚嫢騫蹭釜scale. 姣忎釜scale鐨勯噰鏍鋒闀夸負(fù)錛?br>
寤虹珛濂介珮鏂昂搴︾┖闂村悗錛屽啀閫氳繃寤虹珛楂樻柉宸垎灝哄害絀洪棿瀵繪壘鍥懼儚鐨勫眬閮ㄦ瀬鍊箋傞珮鏂樊鍒嗗昂搴︾┖闂村緩绔嬪緢綆鍗曪紝瀵歸珮鏂昂搴︾┖闂寸殑榪炵畫(huà)鍥懼儚鐩稿噺灝卞彲浠ヤ簡(jiǎn)銆傚叿浣撳叕寮忓涓?
.
鏋佸肩殑紜畾濡傚浘錛?br> 
鍦ㄥ浘鍍忛珮鏂樊鍒嗗昂搴︾┖闂村唴褰撳墠灝哄害鍜屽叾鐩擱偦涓や釜灝哄害3*3鐨勫尯鍩熷唴錛屾爣璁扮殑X鍜屽叾浠?6涓儚绱犳瘮杈冿紝濡傛灉X鐨勭伆搴﹀ぇ浜庢垨鑰呭皬浜庡叾浠?6涓儚绱犮傞偅涔堣繖涓猉灝辨槸涓瀬鍊箋?br> 寤虹珛楂樻柉灝哄害絀洪棿鏈変簺緇嗚妭鐨勯棶棰橈紝鍏蜂綋鍙互鐪婦avid G.low鐨勮鏂囥?/strong>

]]> - 閭d簺騫達(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簺騫達(dá)紝闈掓訂涓ヨ們錛岀悊鎯抽珮榪溿?br> 閭d簺騫達(dá)紝闈掑北宸嶅敞錛屾澗鏌忔稕娑涖?br> 閭d簺騫達(dá)紝絎戝0鐩堢泩錛岄珮璋堥様璁恒?br> 閭d簺騫達(dá)紝鐧藉闈掔摝錛岀豢鍦扮孩鑺便?br> 閭d簺騫達(dá)紝鐧借。濂沖瓙錛屽悰瀛愬ソ閫戙?br> 閭d簺浜嬪効錛岄偅浜涘勾鐨勪簨鍎匡紝閮界鎴戜滑娓愭笎榪滃幓銆傚氨璁╁ス鍘誨惂錛屽甫鐫濂圭殑緹庝附鍜岀瑧瀹癸紝甯︾潃濂圭殑瀹藉鍜屽崥鐖便?br> 閫濆幓涔嬫墍浠ョ編涓斤紝閭d簺騫達(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
]]>
99蜜桃臀久久久欧美精品网站|
国产99精品久久|
久久精品国产欧美日韩|
99久久国产免费福利|
国产综合精品久久亚洲|
国产69精品久久久久APP下载|
性高湖久久久久久久久|
亚洲成色999久久网站|
亚洲人成无码久久电影网站|
久久亚洲精品成人AV|
国产成人精品久久亚洲高清不卡|
国产精品久久婷婷六月丁香|
人妻少妇久久中文字幕一区二区|
久久亚洲综合色一区二区三区|
久久性生大片免费观看性|
欧洲成人午夜精品无码区久久
|
精品久久久无码21p发布|
9久久9久久精品|
国产精品美女久久福利网站|
国产亚州精品女人久久久久久
|
久久精品国产久精国产思思|
久久精品国产只有精品66|
国产精品久久久久久吹潮|
午夜精品久久久久9999高清|
亚洲狠狠久久综合一区77777|
亚洲av伊人久久综合密臀性色|
久久精品国产一区二区|
97精品伊人久久久大香线蕉|
精品久久久无码人妻中文字幕豆芽|
性欧美大战久久久久久久|
久久www免费人成看国产片|
99久久国产综合精品麻豆|
无遮挡粉嫩小泬久久久久久久
|
欧美伊人久久大香线蕉综合|
久久久久久国产精品无码下载
|
欧美伊人久久大香线蕉综合69
|
99久久精品国产免看国产一区|
天堂久久天堂AV色综合
|
久久综合综合久久狠狠狠97色88|
久久精品国产亚洲av麻豆小说|
亚洲AV无码一区东京热久久|