Skip to main content
Solved

Find neighbor between two point clouds in a vertical line, and draw a line between them in point cloud or raster?

  • December 13, 2023
  • 2 replies
  • 62 views

sami26beniaouf
Contributor
Forum|alt.badge.img+7

Hello everyone,

I'd like to outline the main concept of my work. I am working with two point clouds, one representing a road and the other obstacles. Initially, my goal is to determine the minimum distance between these two point clouds. To achieve this, I rasterize both point clouds and calculate the difference (A-B). I then identify the point with the minimum height (Xh, Yh) and its corresponding difference height (H).

 

After that, I rotate the two point clouds, merge them, and rasterize the combined set. The result is like represented in the first picture. However, I aim to enhance this representation by adding an arrow to signify the distance H, as shown in the second picture.

 

My idea (maybe not the best) is identifying the neighboring pair in the two point clouds close to the extracted point with the minimum height (Xh, Yh). I intend to draw a line connecting this pair, label it with H, and either rasterize it with the point cloud or incorporate it in the end somehow. For now i am just trying to figure out how to find this neighbor pairs.

 

Additionally, I would like to include a scale in the representation, as depicted in the third picture. I am uncertain about the feasibility of this and would appreciate any insights.

I am aware that there may be room for optimization in my current approach. If anyone has any suggestions or remarks, I would be grateful to receive them.

Thank you.

Best answer by nampreetatsafe

I asked a colleague about this and they suggested that you can try coercing point clouds to multipoints (PointCloudToPointCoercer), use HullReplacer in concave mode, and then NeighborFinder. Hope this gives you some alternative ideas.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

nampreetatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • Best Answer
  • December 23, 2023

I asked a colleague about this and they suggested that you can try coercing point clouds to multipoints (PointCloudToPointCoercer), use HullReplacer in concave mode, and then NeighborFinder. Hope this gives you some alternative ideas.


sami26beniaouf
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • January 15, 2024

Thank you, i'll try this. I have a simpler question : Can we know the scale of the resulting picture of the NumericRasterizer from the pointcloud knowing the ground extents and X and Y Cell spacing? and can we control or set up the scale we want?NumericRaserizer