Skip to content

Commit baa6929

Browse files
committed
Merge pull request #189 from wiedemeyer/opencl_filter_fix
fix for opencl implementation of the bilateral filter as discussed in #183
2 parents 46320a7 + d2e251f commit baa6929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/protonect/src/opencl_depth_packet_processor.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void kernel filterPixelStage1(global const float3 *a, global const float3 *b, gl
162162
weighted_a_acc += weight * other_a;
163163
weighted_b_acc += weight * other_b;
164164
weight_acc += weight;
165-
dist_acc += select((float3)(0.0f), dist, c1);
165+
dist_acc += select(dist, (float3)(0.0f), c1);
166166
}
167167
}
168168

0 commit comments

Comments
 (0)