Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index the unused points #108

Open
pyedog1976 opened this issue Oct 6, 2023 · 1 comment
Open

index the unused points #108

pyedog1976 opened this issue Oct 6, 2023 · 1 comment

Comments

@pyedog1976
Copy link

pyedog1976 commented Oct 6, 2023

Dear authors,

I'm new in the field, and my question might be fundamental.
I'm trying to figure out a way to index the unused points when I project it to the range view surface.

I didn't find the related code in the repository, or in the existing issues.
Could anyone give me some help, please?

Regards

@pyedog1976 pyedog1976 changed the title extract the un index the unused points Oct 6, 2023
@jbehley
Copy link
Member

jbehley commented Apr 9, 2024

Sorry for the very late reply.

I'm not 100% sure, but these are simply the points after the first index in the indices, see

# order in decreasing depth
indices = np.arange(depth.shape[0])
order = np.argsort(depth)[::-1]
depth = depth[order]
indices = indices[order]
points = self.points[order]
remission = self.remissions[order]
proj_y = proj_y[order]
proj_x = proj_x[order]
# assing to images
self.proj_range[proj_y, proj_x] = depth
self.proj_xyz[proj_y, proj_x] = points
self.proj_remission[proj_y, proj_x] = remission
self.proj_idx[proj_y, proj_x] = indices
self.proj_mask = (self.proj_idx > 0).astype(np.int32)

So if you want to figure out the "non-used" points, then these provide you with the index of all non-projected points.

Not sure if it still helps, but it might help in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants