Przeglądaj źródła

matriz mentirosa

David 11 lat temu
rodzic
commit
8c0e4ed264
1 zmienionych plików z 1 dodań i 0 usunięć
  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];