Skip to content

Commit ef85792

Browse files
committed
Update depth_packet_processor.cpp
Changed gaussian kernel coefficients to have a sum equal to 1.0f
1 parent 429b434 commit ef85792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/depth_packet_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DepthPacketProcessor::Parameters::Parameters()
6161
gaussian_kernel[1] = 0.1131098f;
6262
gaussian_kernel[2] = 0.1069973f;
6363
gaussian_kernel[3] = 0.1131098f;
64-
gaussian_kernel[4] = 0.1195716f; // sum shall be 1.0f, not 0.9999999f ? (rounding errors accumulating here)
64+
gaussian_kernel[4] = 0.1195716f;
6565
gaussian_kernel[5] = 0.1131098f;
6666
gaussian_kernel[6] = 0.1069973f;
6767
gaussian_kernel[7] = 0.1131098f;

0 commit comments

Comments
 (0)