isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.2k stars 2.27k forks source link

polygon to crop point cloud using the 'crop' function #4338

Open eiffelbastin opened 2 years ago

eiffelbastin commented 2 years ago

Hi there,

I was wondering whats the optimum way to crop a point cloud is based on a polygon shape I define with respect to the original point cloud itself. I.e, I need to do instance object separation on a point cloud, but it requires a json file mentioning the corner points and edge length, but how do I generate this json file wrt to the original point cloud that I am working itself or is there an even better way to crop without generating the json file

Thanks in advance :)

yxlao commented 2 years ago

What is your polygon? How is it defined? Could you give an example of that?

eiffelbastin commented 2 years ago

What is your polygon? How is it defined? Could you give an example of that?

the polygon shape we need to import in order to crop a point cloud. please see these links so u will get what I am talking about

http://www.open3d.org/docs/release/tutorial/geometry/pointcloud.html#Crop-point-cloud

https://youtu.be/2bVdvgzYLeQ?list=PLkmvobsnE0GEZugH1Di2Cr_f32qYkv7aN&t=280

Thanks for replying !!

eiffelbastin commented 2 years ago

What is your polygon? How is it defined? Could you give an example of that?

my question is how do I generate this polygon JSON file?

eiffelbastin commented 2 years ago

heres the code I tried and the error I am getting. can u figure out what's wrong, and suggest if other functions are there ??

image

JAIRJAMAA commented 2 months ago

What is your polygon? How is it defined? Could you give an example of that?

my question is how do I generate this polygon JSON file?

The same question