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

正文內(nèi)容

灰值圖像形態(tài)學-計算機圖像處理課程設計報告-在線瀏覽

2025-03-07 22:40本頁面
  

【正文】 ,SRCCOPY)。 int nWidth,nHeight,nBitsPerPixel。 nHeight=pOldImageGetHeight()。 if(!pNewImageIsNull())// 目標位圖非空 pNewImageDestroy()。//建立CImage類對象新位圖 CopyColorTables(pNewImage,pOldImage)。// 建立源位圖CDC pNewDC=CDC::FromHandle(pNewImageGetDC())。//復制像素數(shù)據(jù) pOldImageReleaseDC()。}IndexToGreyImage( ):索引圖像變灰階圖像void IndexToGreyImage(CImage *pNewImage,CImage *pOldImage) {RGBQUAD ColorTabs[256]。int i,y,x,nOldWidth,nOldHeight,nColorTableEntries。 if(pOldImageGetBPP()==8) { nOldWidth=pOldImageGetWidth()。//建立新圖像 if (!pNewImageIsNull()) pNewImageDestroy()。//建立新圖像//設置新圖像的灰階調(diào)色板 for(i=0。i++) ColorTabs[i].rgbBlue=ColorTabs[i].rgbGreen=ColorTabs[i].rgbRed=i。//設置新圖像調(diào)色板//計算原圖像調(diào)色板的RGB色彩數(shù)據(jù)與灰色數(shù)據(jù)關(guān)系 nColorTableEntries=pOldImageGetMaxColorTableEntries()。//取原索引圖像調(diào)色板 for(i=0。i++)//將原索引圖像的調(diào)色板每項的RGB三種顏色計算成灰色數(shù)據(jù) RGBToGrey[i]=(int)(*ColorTabs[i].rgbBlue+*ColorTabs[i].rgbGreen+*ColorTabs[i].rgbRed)。ynOldHeight。xnOldWidth。 //將原索引圖像的像素按映射關(guān)系表變成灰階圖像中的像素 cNewPixel=RGBToGrey[cOldPixel]。//寫新的灰階圖像中的像素值 } }}處理方法一:灰值形態(tài)學的腐蝕處理void GreyErosion(CImage *pNewImage,CImage *pOldImage){ int y,x,i,j,n
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1