]> git.imager.perl.org - imager.git/commitdiff
update guassian.im with IMAGER_NO_CONTEXT
authorTony Cook <tony@develop-help.com>
Mon, 6 Aug 2012 01:23:51 +0000 (11:23 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 14 Aug 2012 09:58:17 +0000 (19:58 +1000)
gaussian.im

index 45fc02d9ce04742f9e55a515da2d787e81224639..7e937692332c05852239ce97714bb27ebffba8b1 100644 (file)
@@ -1,3 +1,4 @@
+#define IMAGER_NO_CONTEXT
 #include "imager.h"
 #include <math.h>
 
 #include "imager.h"
 #include <math.h>
 
@@ -25,8 +26,9 @@ i_gaussian(i_img *im, double stddev) {
   double res[MAXCHANNELS];
   i_img *timg;
   int radius, diameter;
   double res[MAXCHANNELS];
   i_img *timg;
   int radius, diameter;
+  dIMCTXim(im);
 
 
-  mm_log((1,"i_gaussian(im %p, stdev %.2f)\n",im,stddev));
+  im_log((aIMCTX, 1,"i_gaussian(im %p, stdev %.2f)\n",im,stddev));
   i_clear_error();
 
   if (stddev <= 0) {
   i_clear_error();
 
   if (stddev <= 0) {