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

正文內(nèi)容

基于vc手寫數(shù)字識別程序設計-wenkub.com

2024-08-25 10:03 本頁面
   

【正文】 }鼠標左鍵放開程序void CPatternView::OnLButtonUp(UINT nFlags, CPoint point) {//設置mouseDown為false mouseDown=0。 oldpoint=mypoint[mytime]。 oldpoint=mypoint[mytime1]。} if((k==1)amp。 if(mytime2){ k=0。 mypoint[mytime].y=j。 pDCSelectObject (pOldBrush )。(startY+stepY*16)){ CBrush Brush (RGB (0, 0 , 0) )。(startX+stepX*16)amp。 if((mouseDown==1)amp。 m_HCross=AfxGetApp()LoadStandardCursor(IDC_CROSS)。amp。Rgn)。}鼠標移動程序void CPatternView::OnMouseMove(UINT nFlags, CPoint point) {// TODO: Add your message handler code here and/or call default CDC *pDC=GetDC()。(=140)amp。}if((=220)amp。amp。(40)){ OnStudy()。(270)amp。 else mytezhenglenth1=1。amp。} if(q=0) break。pmytime6。} if(qmytime) break。p4。} else mytezhenglenth++。 mytezhenglenth=1。 else mytezhengVHDerection[i]=1。 case 3:if(mypoint[j+1].x=mypoint[j].x){ i++。 else if(mypoint[j+1].xmypoint[j].x) mytezhengVHDerection[i]=1。 break。 if(mypoint[j+1].ymypoint[j].y) mytezhengVHDerection[i]=2。 else mytezhengVHDerection[0]=4。 mytezhenglenth=1。} if(mypoint[j+1].xmypoint[j].x) mytezhengVHDerection[i]=1。 j++。 return。 //從第一個點到最后一個點 for(int j=0。 mytezhengdecon=0。 mytezhenglenth1=0。 mypoint[i].y=1。 mytime=0。i++) for(int j=0。 CBrush pOldBrush。//搜索結束 } } if(j==i){ AfxMessageBox(抱歉,無法識別)。(templenend==mytezhenglenend)){ char s[20]。(templenth1==mytezhenglenth1)amp。(tempdecon==mytezhengdecon)amp。k15。//在模板文件中尋找,是否有與當前特征值相同的 for(int j=0。 int i=nFileSize/sizeof(TEZHENG)。 } catch(CFileException *e){ //Alert user to error eDelete()。(amp。(amp。mytezhengvalue,sizeof(signed char))。 } //相同,則將新的數(shù)字類型寫入模板文件中 else{ GetTeZheng()。 sprintf(s,您輸入的是:%d,數(shù)據(jù)已有,tempvalue)。amp。amp。k++){ if(tempVHDerection[k]!=mytezhengVHDerection[k]) //判斷水平特征 break。ji。 TEZHENG *temp。/*TRANSPARENT是使用透明的輸出,也就是文字的背景是不改變的*/}學習程序void CPatternView::OnStudy(void){//輸入數(shù)字值的對話框 InputDialog inputdlg。 //Unselect brush out of device context pDCSelectObject (pOldBrush )。//畫板 CBrush BrushBoard (RGB (255, 255 , 255) )。 (amp。 pDCBitBlt(220, 80, 50, 20, amp。dcMemory1中的像素進行位塊轉換,以傳送到目標設備環(huán)境*/ (IDB_BITMAP_RECOGNIZE)。bitmapstudy)。 /*類CBitmap封裝了Windows圖形設備接口(GDI)中的位圖*/ CDC dcMemory1,dcMemory2,dcMemory3。rcClip)。/*CBrush是封裝了Windows圖形設備接口(GDI)中畫刷的MFC類,用于構造CBrush對象,然后傳給需要畫刷的CDC成員函數(shù)*/ CBrush* pOldBrush = pDCSelectObject (amp。//打開保存模板特征量的文件 if((,CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite)==NULL){ AfxMessageBox(打開文件失敗,\n您最好退出程序)。 for(i=0。 mytezheng=(TEZHENG *)malloc(sizeof(TEZHENG))。i++){ mypoint[i].x=1。j++) bitgraph[i][j]=0。//初始化,使得每個點皆為白點 for(int i=0。本文所采用的模板匹配分類器既節(jié)省時間,簡便易行,也可以達到較高地識別效果。 識別調(diào)試清除調(diào)試只要點擊清除按鈕。5) 特征應有較好的抗干擾能力。在進行手寫數(shù)字識別的過程中,特征提取應遵循以下原則:1) 特征應能盡量包含
點擊復制文檔內(nèi)容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1