fix(api): points cloud ghost data

This commit is contained in:
TinyOh 2019-03-16 11:13:36 +08:00
parent 2d1989fc2b
commit 5f63df740d

View File

@ -105,6 +105,9 @@ bool PointsProcessor::OnProcess(
// Missing points denoted by NaNs
if (!DepthTraits<uint16_t>::valid(depth)) {
dptr[u][0] = 0;
dptr[u][1] = 0;
dptr[u][2] = 0;
continue;
}
dptr[u][0] = (u - center_x) * depth * constant_x ;