浏览代码

matriz mentirosa

David 11 年之前
父节点
当前提交
8c0e4ed264
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      filtros/blur_c.c

+ 1 - 0
filtros/blur_c.c

@@ -54,6 +54,7 @@ void blur_c(unsigned char *src, unsigned char *dst, int cols, int filas, float s
 			// Recorro la submatriz que le corresponde al pixel actual y hago las multiplicaciones
 			for(y=-r; y<=r; y++) {
 				for(x=-r; x<=r; x++) {
+					//En C nunca veo la ultima posicion (0) de la matriz
 					tmp[0]+=src_matrix[i+y][4*(x+j)+0] * mc[matPos];
 					tmp[1]+=src_matrix[i+y][4*(x+j)+1] * mc[matPos];
 					tmp[2]+=src_matrix[i+y][4*(x+j)+2] * mc[matPos];