Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid CAM File Error #1

Open
al093 opened this issue Dec 11, 2018 · 5 comments
Open

Invalid CAM File Error #1

al093 opened this issue Dec 11, 2018 · 5 comments

Comments

@al093
Copy link

al093 commented Dec 11, 2018

Hi,
I am trying to run the executable exactly as written in the Readme, but i get invalid CAM file error as follows:

$ ./G2LTex ../Data/bloster/textureimages ../Data/bloster/bloster.ply
tok:../Data/bloster/textureimages
tok:../Data/bloster/bloster.ply
PLY Loader: comment VCGLIB generated
Reading PLY: 6972 verts... 12712 faces... done.
Generating texture views:
Invalid CAM file: color_01.cam

@fdp0525
Copy link
Owner

fdp0525 commented Dec 14, 2018

@al093 I have fixed this mistake. Thanks.

@al093
Copy link
Author

al093 commented Dec 18, 2018

@fdp0525 I tried to run it again, but still I get the same error.
Then I checked the .cam files of the bloster dataset. It seems to miss the intrinsic matrix information, which mvs-texturing expects. Hence, I edited them and I finally could run your code.

But, I have another issue now. I am trying to run an another, my own dataset, but the tool crashes without any useful log. See the output below:

Reading PLY: 122654 verts... 242149 faces... done.
Generating texture views:
depth fx:934.034 fy:934.034 cx:635.012 cy:362.089 width:1280 height:720
RGB fx:1383.45 fy:1382.48 cx:979.023 cy:529.022 width:1920 height:1080
Global depth:100 RGB:1
Local RGB:1 edge:1 Reg:100
Global Iterations:300 Local Iterations:20
num_views:5
361543 total edges.
132187 faces have not been seen by a view.
Saving model... done.
loading face info ...
Global iter:0/300
Segmentation fault (core dumped)

I dont know if its a issue with the way the .cam files must be written. Because for the translation vector in the extrinsic pose of the views I saw that you have quite small values in the bloster dataset: -2.17637 -1.55773 -0.15426 .....; are they supposed to be in meters? I cant make any sense out of these values.

But since mvs-texturing works fine on this dataset, i expect this code to run also.

@fdp0525 fdp0525 closed this as completed Apr 9, 2019
@fdp0525
Copy link
Owner

fdp0525 commented Apr 9, 2019

@al093 I have modified this issue. The extrinsic poses are in meters which are similar to the trajectory generated by KinectFusion. Thanks.

@fdp0525 fdp0525 reopened this Apr 9, 2019
@mohamed-elkhouly
Copy link

Dear @fdp0525 I had the same problem of @al093 of segmentation fault, I figured that this was due to the documentation on readme: the depth naming convention was written as "Depth frames (depth-XX.png)" with "-" but your code search for depth files named with "_". So, Kindly change it in the documentation.

@fdp0525
Copy link
Owner

fdp0525 commented Oct 11, 2019

@mohamed-elkhouly I have corrected this mistake. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants