Created
May 20, 2013 21:37
-
-
Save mitjap/5615779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ply | |
format ascii 1.0 | |
comment PCL generated | |
element vertex 10 | |
property float x | |
property float y | |
property float z | |
property uchar red | |
property uchar green | |
property uchar blue | |
property uchar alpha | |
element camera 1 | |
property float view_px | |
property float view_py | |
property float view_pz | |
property float x_axisx | |
property float x_axisy | |
property float x_axisz | |
property float y_axisx | |
property float y_axisy | |
property float y_axisz | |
property float z_axisx | |
property float z_axisy | |
property float z_axisz | |
property float focal | |
property float scalex | |
property float scaley | |
property float centerx | |
property float centery | |
property int viewportx | |
property int viewporty | |
property float k1 | |
property float k2 | |
end_header | |
0 0 0 0 0 0 204 1 | |
0 0 0 1 1 1 204 2 | |
0 0 0 2 2 2 204 3 | |
0 0 0 3 3 3 204 4 | |
0 0 0 4 4 4 204 5 | |
0 0 0 5 5 5 204 6 | |
0 0 0 6 6 6 204 7 | |
0 0 0 7 7 7 204 8 | |
0 0 0 8 8 8 204 9 | |
0 0 0 9 9 9 204 10 | |
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 10 1 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting C:\Workspace\test\test\build\test.exe... | |
0 | |
[pcl::PLYReader] cloud.ply:2: ignoring line '' | |
[pcl::PLYReader] cloud.ply:12: property 'uint8 alpha' of element 'vertex' is not handled | |
[pcl::PLYReader] cloud.ply:26: property 'float32 focal' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:27: property 'float32 scalex' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:28: property 'float32 scaley' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:29: property 'float32 centerx' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:30: property 'float32 centery' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:33: property 'float32 k1' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:34: property 'float32 k2' of element 'camera' is not handled | |
[pcl::PLYReader] cloud.ply:36: parse error | |
[pcl::PLYReader::read] problem parsing header! | |
[pcl::PLYReader::read] problem parsing header! | |
C:\Workspace\test\test\build\test.exe exited with code 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
pcl::PointCloud<pcl::PointXYZRGBL> cloud_out; | |
pcl::PointCloud<pcl::PointXYZRGBL> cloud_in; | |
for (int i = 0; i < 10; i++) { | |
cloud_out.push_back(pcl::PointXYZRGBL(i,i,i,i+1)); | |
} | |
pcl::io::savePLYFileASCII("cloud.ply", cloud_out); | |
pcl::io::loadPLYFile("cloud.ply", cloud_in); | |
std::cout << cloud_in.size() << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment