Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

index the unused points #108

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

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.

@jbehley jbehley closed this as completed Aug 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants