第7章-图像邻域处理(本科生).pptVIP

  • 2
  • 0
  • 约1.17万字
  • 约 40页
  • 2019-11-05 发布于浙江
  • 举报
第7章 图像的邻域处理 7.1 邻点与邻域处理 7.1.2 图像卷积运算 图像卷积计算过程 图像处理中卷积的特点 void Convolution(CImage *pDestImage,CImage *pSourceImage,char OP[5][5] ,int Scale,int Offset,int nOPWidth,int nOPHeight) { int nLine,nCol,l,c,nWidth,nHeight,nNewPixel; CopyImage(pDestImage,pSourceImage); nWidth=pSourceImage-GetWidth(); nHeight=pSourceImage-GetHeight(); for (nLine=nOPHeight/2;nLinenHeight-nOPHeight/2;nLine++){ for (nCol=nOPWidth/2;nColnWidth-nOPWidth/2;nCol++) { nNewPixel=0; for(l=0;lnOPHeight;l++)//卷积计算 for(c=0;cnOPWidt

文档评论(0)

1亿VIP精品文档

相关文档