Skip to content

Commit d2e251f

Browse files
author
Thiemo Wiedemeyer
committed
fix for opencl implementation of the bilateral filter
1 parent 46320a7 commit d2e251f

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)