Revision: 57843
          http://sourceforge.net/p/brlcad/code/57843
Author:   mohitdaga
Date:     2013-09-23 19:25:13 +0000 (Mon, 23 Sep 2013)
Log Message:
-----------
Use already defined MACRO for avoiding zero divide.

Modified Paths:
--------------
    brlcad/trunk/src/libicv/operations.c

Modified: brlcad/trunk/src/libicv/operations.c
===================================================================
--- brlcad/trunk/src/libicv/operations.c        2013-09-23 19:00:06 UTC (rev 
57842)
+++ brlcad/trunk/src/libicv/operations.c        2013-09-23 19:25:13 UTC (rev 
57843)
@@ -31,8 +31,8 @@
 #include "icv.h"
 
 #include "bio.h"
+#include "vmath.h"
 
-#define EPS 0.000000000001
 
 int icv_sanitize(icv_image_t* img)
 {
@@ -252,7 +252,7 @@
     out_data = out_img->data;
 
     for (size = img1->width*img1->height*img1->channels; size>0; size--)
-       *out_data++ = *data1++ / (*data2++ + EPS);
+       *out_data++ = *data1++ / (*data2++ + VDIVIDE_TOL);
 
     icv_sanitize(out_img);
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to