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

[bug]I can't use my own datas to test #91

Open
BlademasterQAQ opened this issue Mar 28, 2021 · 4 comments
Open

[bug]I can't use my own datas to test #91

BlademasterQAQ opened this issue Mar 28, 2021 · 4 comments
Labels
Parameter setting Problem related to improper parameter set

Comments

@BlademasterQAQ
Copy link

I run your demo test data and it works well.
But when I run my data, it doesn't work.

My data is .obj file exported from Mimics.
My command is: /root/OpenGR/build/install/bin/Super4PCS -i ./all_001.obj ./single_001.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r super4pcs_fast.obj -m mat_super4pcs_fast.txt
The output is:

Starting registration
norm_max_dist: 0.01
Initial LCP: 0
sq_max_base_diameter_: 4645.65
sq_max_base_diameter_: 4645.65
sq_max_base_diameter_: 4645.65
[Error]: std::bad_alloc
Aborting with code -3 ...

And I try .ply format.
I try two ways to get the .ply format, exported from Mimics and convert .obj to .ply.
But they output both are:

haveColor
haveColor
Starting registration
norm_max_dist: 0.01
Initial LCP: 0
sq_max_base_diameter_: 0
sq_max_base_diameter_: 0
sq_max_base_diameter_: 0
sq_max_base_diameter_: 0
Score: 0% best: 0.000000
(Homogeneous) Transformation from /root/myobj/mimics2ply/single_001.ply to /root/myobl_001.ply:
   1    0    0 -nan
   0    1    0  nan
   0    0    1 -nan
   0    0    0    1
Exporting Matrix to mat_super4pcs_fast.txt...
Export DONE
Exporting Registered geometry to super4pcs_fast.ply...
Export DONE

I found it strange that the demo data can't open by 3dsmax, but my data can. So it means that my data format is error?

@BlademasterQAQ BlademasterQAQ changed the title label:bug I can't use my own datas to test [bug]I can't use my own datas to test Mar 28, 2021
@nmellado
Copy link

Hi,
Could you share your files so I can test on my side ?

@BlademasterQAQ
Copy link
Author

Hi,
Could you share your files so I can test on my side ?

Of course!
https://drive.google.com/drive/folders/1rkyB1M6N-7Pu4i94o2aNiw3KmHrZ49i0?usp=sharing
Thx:)

@BlademasterQAQ
Copy link
Author

Hi,
Could you share your files so I can test on my side ?

The other question. Which tool or software did you use to show two point clouds in a figure in your paper? Thx:)

@nmellado
Copy link

Hi,

Sorry for the late reply.
I managed to register your data using the following options:

./Super4PCS -i ~/Downloads/single_001.obj ~/Downloads/all_001.obj -d 3 -n 800 -o 0.99 -r ~/Downloads/registered.obj                                                         ──(Mar,avr27)─┘
Starting registration
norm_max_dist: 3
Initial LCP: 0.09625
sq_max_base_diameter_: 58688             
sq_max_base_diameter_: 58688
sq_max_base_diameter_: 58688
sq_max_base_diameter_: 58688             
sq_max_base_diameter_: 58688
sq_max_base_diameter_: 58688              
Score: 0.155est: 0.155000                  
(Homogeneous) Transformation from /Users/nmellado/Downloads/all_001.obj to /Users/nmellado/Downloads/single_001.obj: 
 0.938839 -0.317236  -0.13395  -2.12338
 0.268191  0.917592 -0.293427  -26.6588
 0.215997  0.239556  0.946551    40.592
        0         0         0         1
Exporting Registered geometry to /Users/nmellado/Downloads/registered.obj...
Export DONE

image

@nmellado nmellado added the Parameter setting Problem related to improper parameter set label Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parameter setting Problem related to improper parameter set
Projects
None yet
Development

No branches or pull requests

2 participants