From cb135f45b5f506f2c2bb026247999f31ff18e7be Mon Sep 17 00:00:00 2001 From: TinyOh Date: Fri, 11 Jan 2019 17:11:02 +0800 Subject: [PATCH] fix(points cloud): show the points clopud in normal size --- src/mynteye/api/processor/points_processor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mynteye/api/processor/points_processor.cc b/src/mynteye/api/processor/points_processor.cc index 8811a99..162f7f7 100644 --- a/src/mynteye/api/processor/points_processor.cc +++ b/src/mynteye/api/processor/points_processor.cc @@ -106,9 +106,9 @@ bool PointsProcessor::OnProcess( if (!DepthTraits::valid(depth)) { continue; } - dptr[u][0] = (u - center_x) * depth * constant_x * 1000.0; - dptr[u][1] = (v - center_y) * depth * constant_y * 1000.0; - dptr[u][2] = depth * 1000.0; + dptr[u][0] = (u - center_x) * depth * constant_x ; + dptr[u][1] = (v - center_y) * depth * constant_y ; + dptr[u][2] = depth ; } } output->id = input->id;