Get a point cloud corresponding to given pixel indices
Hi, I'm trying to publish a point cloud which corresponds to given pixel indices.
I'm using Realsense camera so will use similar terminology.
- I have certain indices of a color image, namely, Nx2 array
indices
whereindices[i, :] = [i, j]
for the pixel(i, j)
. - I subscribe a depth image aligned to color image, namely,
alinged_depth
. - I wanna get a point cloud (both PointCloud2 and PointCloud) which corresponds to the given indices,
indices
.
Is there any workaround for this?