Hello everyone, I try to test the SfM with my own data. I want to know
(1) in this command, load (fullfile(imageDir,'cameraParams.mat')) , Is it need to do camera calibration to load cameraParams.mat? If need, I already try the camera calibration toolbox in matlab, but it's not ok. So, I do the cameraParams.mat in SfM demo folder is moved to my current own image data folder. And then
(2) i use helperEstimateRelativePose , but they showed this error
Error using helperEstimateRelativePose (line 70)
Unable to compute the Essential matrix
Error in sfM_multi_own (line 39) [relativeOrient, relativeLoc, inlierIdx] = helperEstimateRelativePose(matchedPoints1, matchedPoints2, cameraParams);
I don't know how to do and I'm really confused. Please help me! I want to listen for your suggestion seriously.

댓글 수: 6

Thida Aung
Thida Aung 2017년 9월 11일
now I face the same error as you.
Joe Joe
Joe Joe 2017년 9월 12일
i don't know how to resolve this until now.
Victor Medina
Victor Medina 2017년 10월 20일
편집: Victor Medina 2017년 10월 20일
I just managed to solve this same error. In my case, it seems I was using too many images, so the resulting equation system was overdetermined and, therefore, the matrix could not be computed. I just tested with a number of images similar to the example (6, in my case) and enough camera movement from frame to frame, and it works like it should.
Hope this helps.
UBAID ULLAH
UBAID ULLAH 2018년 5월 7일
@Victor Medina ... how'd you solve this problem? i cannot solve it even after number of images reduced to 6. still it gives me the same error. can you please help me out sir?
Mostafa Hossam
Mostafa Hossam 2020년 3월 28일
same error please help
Abdalmalek Abu-Raddaha
Abdalmalek Abu-Raddaha 2022년 3월 3일
Have you guys solved this?
I modified the helperEstimateRelativePose function decreased the confidence and increased the max distance but still getting the same error

댓글을 달려면 로그인하십시오.

답변 (1개)

jhz
jhz 2018년 9월 20일

4 개 추천

Consider increasing the maximum distance or decreasing the desired confidence. You can do this by modifying the Matlab built-in function helperEstimateRelativePose.m: line 43. Then you can add as many images as you want. After modification, it should look like this:
[E, inlierIdx] = estimateEssentialMatrix(matchedPoints1, matchedPoints2,...
cameraParams, 'Confidence', 50, 'MaxDistance', 5);
But be careful editing the built-in functions. In my case, I modified the function and saved into another folder by another name and add that folder into path. I hope this will help someone.

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for USB Webcams에 대해 자세히 알아보기

질문:

2017년 9월 7일

댓글:

2022년 3월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!