freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于vc手寫數(shù)字識(shí)別程序設(shè)計(jì)(編輯修改稿)

2024-10-04 10:03 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 , amp。dcMemory1, 0, 0, SRCCOPY)。/*對(duì)amp。dcMemory1中的像素進(jìn)行位塊轉(zhuǎn)換,以傳送到目標(biāo)設(shè)備環(huán)境*/ (IDB_BITMAP_RECOGNIZE)。 (pDC)。 (amp。bitmaprecognize)。 pDCBitBlt(220, 80, 50, 20, amp。dcMemory2, 0, 0, SRCCOPY)。(IDB_BITMAP_CLEAR)。 (pDC)。 (amp。bitmapclear)。 pDCBitBlt(220, 140, 50, 20, amp。dcMemory3, 0, 0, SRCCOPY)。//畫板 CBrush BrushBoard (RGB (255, 255 , 255) )。 // Select the brush into the device context . pOldBrush = pDCSelectObject (amp。BrushBoard)。 //Paint the area. pDC PatBlt (8,8,176,240, PATCOPY )。 //Unselect brush out of device context pDCSelectObject (pOldBrush )。pDCSetTextColor(RGB(255,255,255))。//設(shè)置當(dāng)前環(huán)境(HDC)的字體顏色pDCSetTextAlign(TA_CENTER|TA_TOP)。//指定設(shè)備環(huán)境設(shè)置文字對(duì)齊標(biāo)志pDCSetBkMode(TRANSPARENT)。/*TRANSPARENT是使用透明的輸出,也就是文字的背景是不改變的*/}學(xué)習(xí)程序void CPatternView::OnStudy(void){//輸入數(shù)字值的對(duì)話框 InputDialog inputdlg。 ()。//定位當(dāng)前文件指針到文件開頭 int nFileSize=()。//獲取文件長度 int i=nFileSize/sizeof(TEZHENG)。 TEZHENG *temp。 temp=(TEZHENG *)malloc(sizeof(TEZHENG))。//計(jì)算當(dāng)前畫板中數(shù)字的特征值 GetTeZheng()。//首先判斷當(dāng)前的數(shù)字類型是否已經(jīng)在模板中 for(int j=0。ji。j++){ ((void *)temp,sizeof(TEZHENG))。//從文件cf的當(dāng)前位置讀數(shù)據(jù) for(int k=0。k15。k++){ if(tempVHDerection[k]!=mytezhengVHDerection[k]) //判斷水平特征 break。 } if((k==15)amp。amp。(tempdecon==mytezhengdecon)amp。amp。(templenfirst==mytezhenglenfirst)amp。amp。(templenth1==mytezhenglenth1)amp。amp。(templenth==mytezhenglenth)amp。amp。(templenend==mytezhenglenend)){ char s[20]。 sprintf(s,您輸入的是:%d,數(shù)據(jù)已有,tempvalue)。 AfxMessageBox(s)。 break。 } } //說明該數(shù)字類型不在模板中 if(j==i){ if(()==IDOK){ //判斷數(shù)字輸入對(duì)話框中的兩個(gè)數(shù)字是否相同 if(!=){ AfxMessageBox(您的輸入有誤,\n請(qǐng)重新輸入)。 } //相同,則將新的數(shù)字類型寫入模板文件中 else{ GetTeZheng()。 try{mytezhengvalue=。()。//定位當(dāng)前文件指針到文件尾(amp。mytezhengvalue,sizeof(signed char))。//將文件數(shù)據(jù)寫入當(dāng)前文件位置(mytezhengVHDerection,sizeof(signed char)*15)。(amp。mytezhenglenth1,sizeof(signed char))。(amp。mytezhenglenth,sizeof(signed char))。(amp。mytezhengdecon,sizeof(signed char))。(amp。mytezhenglenfirst,sizeof(signed char))。(amp。mytezhenglenend,sizeof(signed char))。 } catch(CFileException *e){ //Alert user to error eDelete()。 }//end trycatch }//end ifelse }//end if }//end ifreturn。}識(shí)別程序void CPatternView::OnRecognize(void){ ()。 int nFileSize=()。 int i=nFileSize/sizeof(TEZHENG)。 TEZHENG *temp。 temp=(TEZHENG *)malloc(sizeof(TEZHENG))。 //計(jì)算特征值 GetTeZheng()。//在模板文件中尋找,是否有與當(dāng)前特征值相同的 for(int j=0。ji。j++){ ((void *)temp,sizeof(TEZHENG))。 for(int k=0。k15。k++){ if(tempVHDerection[k]!=mytezhengVHDerection[k]) break。 } //找到識(shí)別結(jié)果if((k==15)amp。amp。(tempdecon==mytezhengdecon)amp。amp。(templenfirst==mytezhenglenfirst)amp。amp。(templenth1==mytezhenglenth1)amp。amp。(templenth==mytezhenglenth)amp。amp。(templenend==mytezhenglenend)){ char s[20]。 sprintf(s,您輸入的是:%d,tempvalue)。 Afx
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1