Hello every body here,
I have a small Probleme , i want to import an image into CloudCompare, for that i must convert the image into an E57 file, Can yuo help me please?!
Thank you
ow to convert an image 2D ( JPG,JPEG,…) into an E57
Re: ow to convert an image 2D ( JPG,JPEG,…) into an E57
Well, E57 files can include (calibrated) pictures, but you won't be able to convert any image to a fake E57 file easily.
Several other formats can handle calibrated pictures (such as Bundler or ICM formats which are much simpler and rely on text files - see http://www.cs.cornell.edu/~snavely/bund ... al.html#S6 for the Bundler format, and the CloudCompare PDF documentation for a description of the ICM format). Those images appears as 2D overlay and the user can only change their transparency so as to see the point cloud though it (in the right orientation).
If you don't have any calibration information, and you just want to display the image as a textured plane in 3D, it's even simpler to use the PLY format. Let say your picture is named "MyPicture.jpg" and its size is WxH pixels, the correct PLY file will look like this (you just have to copy this in a new text file named 'MyPicture.ply' alongside your picture and replace the red parts):
<<
ply
format ascii 1.0
comment TEXTUREFILE MyPicture.jpg
comment Author: your name
obj_info anything
element vertex 4
property float x
property float y
property float z
element face 2
property list uchar int vertex_indices
property list uchar float texcoord
end_header
0.0 0.0 0.0
W 0.0 0.0
0.0 H 0.0
W H 0.0
3 0 1 2 6 0.0 0.0 1.0 0.0 0.0 1.0
3 2 1 3 6 0.0 1.0 1.0 0.0 1.0 1.0
>>
Here, the corresponding plane will have a size of WxH (you can change this right in the file or by applying a scale later in CloudCompare with 'Edit > Scale').
Several other formats can handle calibrated pictures (such as Bundler or ICM formats which are much simpler and rely on text files - see http://www.cs.cornell.edu/~snavely/bund ... al.html#S6 for the Bundler format, and the CloudCompare PDF documentation for a description of the ICM format). Those images appears as 2D overlay and the user can only change their transparency so as to see the point cloud though it (in the right orientation).
If you don't have any calibration information, and you just want to display the image as a textured plane in 3D, it's even simpler to use the PLY format. Let say your picture is named "MyPicture.jpg" and its size is WxH pixels, the correct PLY file will look like this (you just have to copy this in a new text file named 'MyPicture.ply' alongside your picture and replace the red parts):
<<
ply
format ascii 1.0
comment TEXTUREFILE MyPicture.jpg
comment Author: your name
obj_info anything
element vertex 4
property float x
property float y
property float z
element face 2
property list uchar int vertex_indices
property list uchar float texcoord
end_header
0.0 0.0 0.0
W 0.0 0.0
0.0 H 0.0
W H 0.0
3 0 1 2 6 0.0 0.0 1.0 0.0 0.0 1.0
3 2 1 3 6 0.0 1.0 1.0 0.0 1.0 1.0
>>
Here, the corresponding plane will have a size of WxH (you can change this right in the file or by applying a scale later in CloudCompare with 'Edit > Scale').
Daniel, CloudCompare admin
Re: ow to convert an image 2D ( JPG,JPEG,…) into an E57
Thank you daniel,
I have used a software called FME Workbench to convert an JPG image into E57 file and i open it in CloudCompare, but i have just a 30 days trial license, so could you tell me if you knaw an other software that can do it?
I have used a software called FME Workbench to convert an JPG image into E57 file and i open it in CloudCompare, but i have just a 30 days trial license, so could you tell me if you knaw an other software that can do it?
Re: ow to convert an image 2D ( JPG,JPEG,…) into an E57
Nope! But it's interesting, what does the image look like once loaded in CloudCompare? Can you share a sample file with us?
Daniel, CloudCompare admin
-
- Posts: 4
- Joined: Tue Oct 08, 2019 12:59 pm
Re: how to convert an image 2D ( JPG,JPEG,…) into an E57
HI daniel
So I am trying the .ply route. Some questions:
1) My yacht.jpg file is W2000pixelsxH1000pixels. Does this mean the code in .ply is like this?
0.0 0.0 0.0
2000 0.0 0.0
0.0 1000 0.0
2000 1000 0.0
0.0 0.0 0.0
2) Once I have the text file correct and in the same folder as the yacht.jpg. The I simply drag the .jpg into my CC project?
So far I have tried this and it is not working. So I must be missing something.
Many thanks
So I am trying the .ply route. Some questions:
1) My yacht.jpg file is W2000pixelsxH1000pixels. Does this mean the code in .ply is like this?
0.0 0.0 0.0
2000 0.0 0.0
0.0 1000 0.0
2000 1000 0.0
0.0 0.0 0.0
2) Once I have the text file correct and in the same folder as the yacht.jpg. The I simply drag the .jpg into my CC project?
So far I have tried this and it is not working. So I must be missing something.
Many thanks
-
- Posts: 4
- Joined: Tue Oct 08, 2019 12:59 pm
Re: ow to convert an image 2D ( JPG,JPEG,…) into an E57
OK - I now found the solution on another thread. All working good.
Thanks for creating this wonderful tool.
Thanks for creating this wonderful tool.