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

正文內容

數(shù)字圖像處理紙牌識別課程設計(編輯修改稿)

2025-07-14 06:31 本頁面
 

【文章內容簡介】 BYTE * ptemp=(BYTE *) new BYTE[nw*nh]。 memset(ptemp,0,nw*nh)。 int movedownj,moverighti。//移動像素距離 int h,k。 int temp。 int nwmove[7],nhmove[7]。 int nwmlength[7]={600,600,600,600,600,600,600},nhmlength[7]={600,600,600,600,600,600,600}。 int bnw,bnh。 for(i=0。i7。i++) { nhmove[i]=nh*(i+1)/8。 nwmove[i]=nw*(i+1)/8。 }for(k=0。k7。k++)//尋找水平距離 { for(i=0。inw。i++) { if([nhmove[k]*nw+i]!=0) { nhmlength[k]=i。 break。 } } for(k=0。k7。k++)//尋找豎直距離 { for(j=nh。j0。j) { if([j*nw+nwmove[k]]!=0) { nwmlength[k]=nhj。 break。 } } } for(i=0。i6。i++)//水平測量量nhmlegnth的排列 { k=i。 for(j=i。j7。j++) { if(nhmlength[j]nhmlength[k])k=j。 } temp=nhmlength[k]。 nhmlength[k]=nhmlength[i]。 nhmlength[i]=temp。 } bnw=nhmlength[0]。for(i=0。i6。i++)//豎直測量量nwmlength的排列 { k=i。 for(j=i。j7。j++) { if(nwmlength[j]nwmlength[k])k=j。 } temp=nwmlength[k]。 nwmlength[k]=nwmlength[i]。 nwmlength[i]=temp。 } bnh=nwmlength[0]。 movedownj=bnh。 moverighti=bnw。 for(j=0。jnh。j++)//進行平移 for(i=0。inw。i++){ h=jmovedownj。 k=i+moverighti。 if(h0amp。amp。hnhamp。amp。k0amp。amp。knw) ptemp[h*nw+k]=[j*nw+i]。 } memcpy(,ptemp,nw*nh)。 ()。memcpy(,ptemp,nw*nh)。()。//刷新屏幕 Invalidate()。/***********************************/ for(j=0。jnh。j++) for(i=0。inw。i++) { h=jmovedownj。 k=i+moverighti。 if(h0amp。amp。hnhamp。amp。k0amp。amp。knw) ptemp[h*nw+k]=[j*nw+i]。 } memcpy(,ptemp,nw*nh)。 ()。 delete[]ptemp。}void CPokeridentifyView::OnRecreactImage() {// TODO: Add your mand handler code here if(!) { AfxMessageBox(圖像還打開,請先打開圖像!)。 return。 } //獲取圖像寬和高 int nw=()。 int nh=()。 int i,j。 int h,k。BYTE * ptemp=(BYTE *) new BYTE[nw*nh]。 memset(ptemp,0,nw*nh)。 int movedownj,moverighti。//移動像素距離 int bnh。 int moveup=500。 for(j=0。jnh。j++) { if([j*nw+50]==255) { moveup=j。 break。 } }bnh=moveup。 movedownj=bnh。 moverighti=0。for(j=0。jnh。j++) for(i=0。inw。i++) { h=j+movedownj。 k=imoverighti。 if(h0amp。amp。hnhamp。amp。k0amp。amp。knw) ptemp[h*nw+k]=[j*nw+i]。 } memcpy(,ptemp,nw*nh)。 ()。 //刷新屏幕 delete[]ptemp。 Invalidate()。}平移結果為:截取特權的代碼為:void CPokeridentifyView::OnCrectGetfeature() { // TODO: Add your mand handler code here if(!) { AfxMessageBox(圖像還打開,請先打開圖像!)。 return。 } //獲取圖像寬和高 int nw=()。 int nh=()。 int i,j。 BYTE * ptemp=
點擊復制文檔內容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1