Skip to content

Commit faad764

Browse files
committed
Convert depth to meters
1 parent 6027bda commit faad764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ struct SessionDelegate : ST::CaptureSessionDelegate {
238238
for(int x = 0; x < depthFrame.width(); x++)
239239
{
240240
std::size_t pixelOffset = (y * depthFrame.width()) + x;
241-
img.at<float>(y, x) = buf[pixelOffset];
241+
img.at<float>(y, x) = buf[pixelOffset] * 0.001f;
242242
}
243243
}
244244

0 commit comments

Comments
 (0)