-#include "image.h"
+#include "imager.h"
/*
General convolution for 2d decoupled filters
*/
void
-i_conv(i_img *im,float *coeff,int len) {
+i_conv(i_img *im,const float *coeff,int len) {
int i,l,c,ch,center;
float pc;
i_color rcolor;
float res[11];
i_img timg;
- mm_log((1,"i_conv(im* 0x%x,coeff 0x%x,len %d)\n",im,coeff,len));
+ mm_log((1,"i_conv(im %p, coeff %p, len %d)\n",im,coeff,len));
i_img_empty_ch(&timg,im->xsize,im->ysize,im->channels);
center=(len-1)/2;
-
+ /* don't move the calculation of pc up here, it depends on which pixels
+ are readable */
for(l=0;l<im->ysize;l++) {
for(i=0;i<im->xsize;i++) {
pc=0.0;
i_ppix(im,l,i,&rcolor);
}
}
+ i_img_exorcise(&timg);
}