diku-dk / RefractiveSfM

This repository contains code for refractive structure-from-motion
Apache License 2.0
10 stars 3 forks source link

The examples can't run #2

Open yang112233q opened 3 months ago

yang112233q commented 3 months ago

"main_absolute_pose_scenario1_toy_example.m" can't run,because the function 'dataGenerator' can't be recognized. There are similar errors in other examples. For example,"main_absolute_pose_scenario2_toy_example.m" can't find function "skewm". "main_relative_pose_scenario1_toy_example.m" can't find function "to_virtual_camera_coordinate". "main_relative_pose_scenario2_toy_example.m" can't find function "skewm". I can't run the examples, looking forward to your reply, thanks so much!

LoveSZ996 commented 2 months ago

I will check this issue within this week.

xiahaa commented 2 months ago

"main_absolute_pose_scenario1_toy_example.m" can't run,because the function 'dataGenerator' can't be recognized. There are similar errors in other examples. For example,"main_absolute_pose_scenario2_toy_example.m" can't find function "skewm". "main_relative_pose_scenario1_toy_example.m" can't find function "to_virtual_camera_coordinate". "main_relative_pose_scenario2_toy_example.m" can't find function "skewm". I can't run the examples, looking forward to your reply, thanks so much!

Missing files have been uploaded. Let me know if there are further issues.

yang112233q commented 2 months ago

"main_absolute_pose_scenario1_toy_example.m"still can't run, the function 'dataGenerator' can't be recognized. ”main_absolute_pose_scenario2_toy_example.m“ line 103 ,“[Rana,Cana] = Hanner_8pt(Q,q,K,miu,R1,C1);” line 31,the function q2R can't be recognized. "main_relative_pose_scenario1_toy_example.m" line 100 ,refractive_rel_pose_linear_solver>solve_kernerl line 95 , 'Essential_decomposition' can't be recognized. And in line 54 ,"[mincost, R, t] = solve_kernerl(A,sol) " also have an error.

xiahaa commented 2 months ago

https://github.com/xiahaa/MATLAB/tree/master/quaternion: q2R

xiahaa commented 2 months ago

dataGenerator and Essential_decomposition have been uploaded.

yang112233q commented 2 months ago

Now all four examples are running successfully. Thank you for your response.

LoveSZ996 commented 2 months ago

Now all four examples are running successfully. Thank you for your response.

Glad to hear that.