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

正文內(nèi)容

快速中值濾波算法(參考版)

2025-06-23 06:39本頁(yè)面
  

【正文】 采用對(duì)程序運(yùn)行計(jì)時(shí)的方法.對(duì)中值濾波的快速算法和普通算法進(jìn)行精確的比較,結(jié)論可靠。解決了圖象大而內(nèi)存不足的問(wèn)題。采用迭代,逐次逼近的方法得到本次的中值,在一行處理完畢后轉(zhuǎn)人下一行也采用走S型的方法.這樣除第一個(gè)窗口采用了一伏排序得到中值外,其它的窗口都利用上伏的窗口的象素刪除無(wú)用的3個(gè)象素后再加人新的3個(gè)象素,利用迭代的方法得到本次窗口的中值.這樣太大地提高了程序執(zhí)行的效率。 } return。iN。 FFTandIFFT(mR,mI,2*N,false)。i++){ Ff0 += Ff[i]。 } } for(i=0。 } else{ mR[i] = 0。i++){ if(iN){ mR[i] = Ff[i]*cos(i*PI/(2*N))。 } else{ for(i=0。iN。 FFTandIFFT(mR,mI,2*N,true) Ff[0] = Ff0。i++){ Ff0 += Ff[i]。 } for(i=0。 else{ mR[i] = 0。i2*N。 mI = new float[N*2]。 float Ff0 = 0。 float *mI。 } UpdateAllViews(NULL)。 pResultData[3*y*nCols+3*x+1] = tmp。 tmp = tmp255?255:tmp。 dy = mSourceData[y*nCols+x+1] mSourceData[(y+1)*nCols+x]。xnCols1。ynRows1。 int tmp。 int dx。 }void CImageProcessingDoc::OnRobert() {// TODO: Add your mand handler code here int x。 pResultData[3*y*nCols+3*x+2] = tmp。 pResultData[3*y*nCols+3*x] = tmp。 tmp = (int) sqrt(dx*dx+dy*dy)。x++){ dx = mSourceData[y*nCols+x] mSourceData[y*nCols+x+1]。y++){ for(x=0。 for(y=0。 int dy。 int y。 } UpdateAllViews(NULL)。 pResultData[3*y*nCols+3*x+1] = tmp。 tmp = tmp255?255:tmp。xnCols。ynRows。 ()。 int tmp。 }void CImageProcessingDoc::OnDct() {// TODO: Add your mand handler code here }void CImageProcessingDoc::OnFwt() {// TODO: Add your mand handler code here}void CImageProcessingDoc::OnDht() {// TODO: Add your mand handler code here}void CImageProcessingDoc::OnWaveletTransform() {// TODO: Add your mand handler code here}void CImageProcessingDoc::OnGreyAdjustifcation() {// TODO: Add your mand handler code here}void CImageProcessingDoc::OnGreyLinearAdjustifcation() {// TODO: Add your mand handler code here int x。 pResultData[3*y*nCols+3*x+2] = (unsigned char) mResultData[y*nCols+x]。 x++){ pResultData[3*y*nCols+3*x] = (unsigned char) mResultData[y*nCols+x]。 y++){ for(x = 0。 for(y = 0。 int y。 } mResultData[i*nWidth+j] = mdata[nR*(2*nR+1)+nR]。r=0。mdata[n]=mdata[n+1]。n(2*nR+1)*(2*nR+1)。m++){ r = 1。 //排序 for(m=0。n=nR。m=nR。j++){ if((inR) || (inHeightnR1) || (jnR) || (jnWidthnR1)) resultdata[i*nWidth+j] = 0。i++) for (j=0。 for (i=0。 unsigned tmp。 } }// 返回 return 。 //取得像素值 pixel = (unsigned char)*lpSrc。 // 指向源圖像倒數(shù)第j行,第i個(gè)象素的指針 lpSrc = (unsigned char *)amp。i nWidth 。j nHeight 。 //生成偽隨機(jī)種子 srand((unsigned)time(NULL))。 //像素值 unsigned char pixel。 //循環(huán)變量 long i。 } } } // 返回 return 。mdata[j*nWidth + i]。i nWidth 。j nHeight 。 //生成偽隨機(jī)種子 srand((unsigned)time(NULL))。 //循環(huán)變量 long i。 } UpdateAllViews(NULL)。 pSourceData[3*y*nCols+3*x+1] = (unsigned char) mSourceData[y*nCols+x]。 x nCols。 y nRows。 Random_Noise(mSourceData,nRows,nCols)。 }void CImageProcessingDoc::OnRandomNoise(){// TODO: Add your mand handler code here int x。 pSourceData[3*y*nCols+3*x+2] = (unsigned char)
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1