|
@@ -10,7 +10,7 @@ void blur_c (
|
|
|
int cols,
|
|
int cols,
|
|
|
int filas,
|
|
int filas,
|
|
|
float sigma,
|
|
float sigma,
|
|
|
- int r)
|
|
|
|
|
|
|
+ unsigned int r)
|
|
|
{
|
|
{
|
|
|
unsigned char (*src_matrix)[cols*4] = (unsigned char (*)[cols*4]) src;
|
|
unsigned char (*src_matrix)[cols*4] = (unsigned char (*)[cols*4]) src;
|
|
|
unsigned char (*dst_matrix)[cols*4] = (unsigned char (*)[cols*4]) dst;
|
|
unsigned char (*dst_matrix)[cols*4] = (unsigned char (*)[cols*4]) dst;
|
|
@@ -21,7 +21,6 @@ void blur_c (
|
|
|
float val;
|
|
float val;
|
|
|
float *mc=malloc(sizeof(float)*40*r*r);
|
|
float *mc=malloc(sizeof(float)*40*r*r);
|
|
|
|
|
|
|
|
- printf("r: %d, plsgiv %d\n", r, sizeof(float)*r*r);
|
|
|
|
|
unsigned int indice_de_mierda=0;
|
|
unsigned int indice_de_mierda=0;
|
|
|
for(y=-r;y<r;y++) {
|
|
for(y=-r;y<r;y++) {
|
|
|
for(x=-r;x<r;x++){
|
|
for(x=-r;x<r;x++){
|