On Sun, Oct 5, 2008 at 9:21 PM, Søren Hauberg <[EMAIL PROTECTED]> wrote:
> Hi All,
>  I've just made a fairly large change to __cordfltn__ in the image
> package. In fact the change is so large that the function is now called
> __spatial_filtering__ :-) The change includes quite a bit of template
> code, so I'd appreciate if people with non-gcc compilers could check if
> it builds on their machine.

I need the following patch to compile it with MSVC.
Is there any test available to check functionality?

Michael.

Index: src/__spatial_filtering__.cc
===================================================================
--- src/__spatial_filtering__.cc        (revision 5336)
+++ src/__spatial_filtering__.cc        (working copy)
@@ -18,6 +18,7 @@
 //      -- Soren Hauberg, March 21st, 2008

 #include <octave/oct.h>
+#include <octave/lo-mappers.h>

 /**
  * Filter functions for ordered filtering.
@@ -197,7 +198,7 @@
     {
       const double p = hist (i);
       if (p > 0)
-        entropy -= p * log2 (p);
+        entropy -= p * xlog2 (p);
     }

   return entropy;

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to