selfcalib.m

127 views
Skip to first unread message

maxim.t...@gmail.com

unread,
Oct 3, 2015, 4:26:02 PM10/3/15
to MultiCamSelfCal
Hello, I find these approach and he is a very interesting.
I try to run selfcalib function on Matlab.
size(Ws)
12   563
size
(IdMat)
4   563
selfcalib
(Ws,IdMat)

But I receive error:
Error in ==> selfcalib
Ws(i*3-2:i*3-1,IdMat(i,:)>0) = [X_i'; ones(1,sum(IdMat(i,:)>0))];

I try understand.
So size of left and right parts are different
size(Ws(i*3-2:i*3-1,IdMat(i,:)>0))
ans
=
     
2   474
size
([X_i'; ones(1,sum(IdMat(i,:)>0))])
ans =
     3   474

I want run code and after that understand how it works step by step.
Where Is error. How it fix.
Or maybe I use this code in wrong way.

Thanks!

Hunter McClelland

unread,
Oct 3, 2015, 4:42:36 PM10/3/15
to multica...@googlegroups.com
-Hunter

--
You received this message because you are subscribed to the Google Groups "MultiCamSelfCal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to multicamselfc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

maxim.t...@gmail.com

unread,
Oct 3, 2015, 5:16:46 PM10/3/15
to MultiCamSelfCal
Thanks, for your answer.
With the debugger is much easier to test code.
Anyway, I try to replace

Ws(i*3-2:i*3-1,IdMat(i,:)>0) = [X_i'; ones(1,sum(IdMat(i,:)>0))];
by code:
Ws(i*3-2:i*3-1,IdMat(i,:)>0) = [X_i'];
I think this part (with one's ) convert data to homogeneous coordinate.
On this line, there is no error, but there is another.

Lambda_est = estimateLambda(Ws,IdMat);

on line
F_ij = pair(i).F;


??? Improper index matrix reference.

Error in ==> estimateLambda at 38
  F_ij
= pair(i).F;
where
function [Lambda] = estimateLambda(Ws,pair)

so its strange. What is it .F ? for IdMat








субота, 3 жовтня 2015 р. 23:42:36 UTC+3 користувач Hunter McClelland написав:
Reply all
Reply to author
Forward
0 new messages