--- ../../dev2/gift/FeatureExtraction/gabor.c 2006-08-13 16:47:51.000000000 +0000 +++ FeatureExtraction/gabor.c 2006-08-13 17:07:00.000000000 +0000 @@ -79,15 +79,18 @@ } } -void gabor_filter(double *image, int width, int height, int filter_scale, int orientation, double ** kernelsxy, double *output) { +void gabor_filter(double *image, int width, int height, int filter_scale, int orientation, double **kernelsxy, double *output) { - double *conv; - int x, y, t_x, t_y; - int i; + uint32_t x, y; + int32_t t_x, t_y; + uint32_t i; double * target_kernal; + double conv[65536]; /* take advantage of our fixed image size. 65536 == width*height */ - - conv = (double *)calloc(width*height, sizeof(double)); + for (i = 0; i < width*height; i++) + { + conv[i]= 0; /* needs to be zeroed */ + } target_kernal=kernelsxy[filter_scale*num_gabors_per_scale+orientation]; @@ -144,5 +147,4 @@ } } - free(conv); }