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

Why should calculate convex hull and reverse i, j in rasterization? #4

Open
HyperMn opened this issue Jan 13, 2022 · 0 comments
Open

Comments

@HyperMn
Copy link

HyperMn commented Jan 13, 2022

Hi @fazanham , recently I work on extracting ground from some city scene ply. And your code help me a lot, that's a wonderful work! But I have two questions that puzzle me for some time.

  1. in TerrainFilter.cpp line 57 and line 92, I want to know why does the code calculate the convex hull before rasterization, and then determine whether each point is in the convex hull. I think convex hull is calculating by these points, so every point should in the convex hull?
  2. Still in TerrainFilter.cpp line176, in double loop(i, j), rasterize is stored by that j is the row index, i is the column index, while other 2d arrays is stored by reversal ways. I wonder if some knowledge is behind the storing way?

Hope to get your reply soon:)

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

1 participant