fix(points cloud): show the points clopud in normal size

This commit is contained in:
TinyOh 2019-01-11 17:11:02 +08:00
parent beab7a155d
commit cb135f45b5

View File

@ -106,9 +106,9 @@ bool PointsProcessor::OnProcess(
if (!DepthTraits<uint16_t>::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;