Open wusuoweima opened 5 years ago
I open these models with meshlab
@wusuoweima ,hello,I met the same problem,did you resolve it?
@wusuoweima ,hello,I met the same problem,did you resolve it?
there are codes for such preprocessings in the project (python implementation), it is very intuitive:
You can follow above steps to implement in C++, hope it helps
intuitive
I'm sorry to bother you, do you know how the ModelNet40 is preprocessed? It seems that the author just provided the link to the preprocessed data. I'm eager to know the way the preprocess the data.
------------------ Original ------------------ From: 李弘洋 <notifications@github.com> Date: Sat,Apr 4,2020 6:11 PM To: charlesq34/pointnet2 <pointnet2@noreply.github.com> Cc: ShiQiu0419 <philqiu@foxmail.com>, Comment <comment@noreply.github.com> Subject: Re: [charlesq34/pointnet2] Normalize the point sets (#95)
intuitive
I'm sorry to bother you, do you know how the ModelNet40 is preprocessed? It seems that the author just provided the link to the preprocessed data. I'm eager to know the way the preprocess the data.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
- Using a certain sampling algorithm (Uniform sampling here) to collect points from the surface of 3d model (CAD model here). 2. Preprocessings: moving the centroid of each model to the origin, then scaling the point cloud to fit in a unit sphere. … ------------------ Original ------------------ From: 李弘洋 <notifications@github.com> Date: Sat,Apr 4,2020 6:11 PM To: charlesq34/pointnet2 <pointnet2@noreply.github.com> Cc: ShiQiu0419 <philqiu@foxmail.com>, Comment <comment@noreply.github.com> Subject: Re: [charlesq34/pointnet2] Normalize the point sets (#95) intuitive I'm sorry to bother you, do you know how the ModelNet40 is preprocessed? It seems that the author just provided the link to the preprocessed data. I'm eager to know the way the preprocess the data. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you for your timely reply. In fact, I was confused by the modelnet40 data set applied by "https:/ /shapenet .cs.stanford。edu/media/modelnet40 normal resampled.zip ". This is a processed data set, where every resampled point is preprocessed to be a 6 dim vector. I did not know the way of implementation of the process. And now I have found the answer, the author not only normalized the coordinates but also add the surface normal(decomposed to x y z ). Anyway, thank you for your help!
Original modelnet40 is CAD-generated, thus the face normals are known. The samples are collected from certain faces whose normals are known, therefore correponding normals can be attached as additional feature of sampled points.
I think the author has clarified these issues, you may have a look at this github project or paper for details.
------------------ Original ------------------ From: 李弘洋 <notifications@github.com> Date: Sun,Apr 5,2020 0:28 AM To: charlesq34/pointnet2 <pointnet2@noreply.github.com> Cc: ShiQiu0419 <philqiu@foxmail.com>, Comment <comment@noreply.github.com> Subject: Re: [charlesq34/pointnet2] Normalize the point sets (#95)
Original modelnet40 is CAD-generated, thus the face normals are known. The samples are collected from certain faces whose normals are known, therefore correponding normals can be attached as additional feature of sampled points. I think the author has clarified these issues, you may have a look at this github project or paper for details. … ------------------ Original ------------------ From: 李弘洋 <notifications@github.com> Date: Sun,Apr 5,2020 0:28 AM To: charlesq34/pointnet2 <pointnet2@noreply.github.com> Cc: ShiQiu0419 <philqiu@foxmail.com>, Comment <comment@noreply.github.com> Subject: Re: [charlesq34/pointnet2] Normalize the point sets (#95)
It's so kind of you.
I reviewed the paper of PointNet and PointNet++ but could found nothing about it. T.T
How do you normalize the point sets to be zero mean and within a unit ball? I use the following method, but it seems to be wrong. ` void normalized() { ifstream inputfile; string filename; string obj_root_path = "./DataSet/ModelNet40_obj"; string ply_root_path = "./DataSet/ModelNet40_Ply_Normalized"; string filename2 = "filenames.txt";
}
void PCLPointCloud2ToMatrix(const PCLPointCloud2 &cloud, MatrixXd &points) {
} void MatrixToPCLPointCloud2(const MatrixXd &coors_Mat,PCLPointCloud2 &cloud ) {
}` Questions: (1) The center of mesh model or point cloud is not at the origin。such as cup_0072
(2) some models' radius will be very samll ,such as cup_0002
The following maybe normal