Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /contrib/brl/bseg/boxm2/ocl/cl/bit/compute_index.cl [4dd432] .. [289b89] Maximize Restore

  Switch to side-by-side view

--- a/contrib/brl/bseg/boxm2/ocl/cl/bit/compute_index.cl
+++ b/contrib/brl/bseg/boxm2/ocl/cl/bit/compute_index.cl
@@ -29,6 +29,7 @@
               
       
 void step_cell_compute_index(float depth,
+                             float block_len,
                              __global float  * alpha_data,
                              int      data_ptr,
                              float    d,
@@ -45,7 +46,7 @@
   (*vis)    *= diff_omega;
   (*expected_depth)+=depth*omega;
   (*expected_depth_square)+=depth*depth*omega;
-  (*t)=depth;
+  (*t)=depth*block_len;
 }
 
 __kernel
@@ -128,7 +129,8 @@
     
     //normalize 
     float prob   = prob_buf[gid];
-    float mean   =  exp_depth_buf[gid] + t_infinity_buf[gid]*prob * (*sub_block_dim);
+    float mean   = exp_depth_buf[gid] + t_infinity_buf[gid]*prob;
+    //float mean   =  exp_depth_buf[gid] + t_infinity_buf[gid]*prob * (*sub_block_dim);
     exp_depth_buf[gid]=mean;
 }