-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathF_Test_dh_dxv.m
38 lines (28 loc) · 1.43 KB
/
F_Test_dh_dxv.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%-----------------------------------------------------------------------
% 1-point RANSAC EKF SLAM from a monocular sequence
%-----------------------------------------------------------------------
% Copyright (C) 2010 Javier Civera and J. M. M. Montiel
% Universidad de Zaragoza, Zaragoza, Spain.
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation. Read http://www.gnu.org/copyleft/gpl.html for details
% If you use this code for academic work, please reference:
% Javier Civera, Oscar G. Grasa, Andrew J. Davison, J. M. M. Montiel,
% 1-Point RANSAC for EKF Filtering: Application to Real-Time Structure from Motion and Visual Odometry,
% to appear in Journal of Field Robotics, October 2010.
%-----------------------------------------------------------------------
% Authors: Javier Civera -- [email protected]
% J. M. M. Montiel -- [email protected]
% Robotics, Perception and Real Time Group
% Aragón Institute of Engineering Research (I3A)
% Universidad de Zaragoza, 50018, Zaragoza, Spain
% Date : May 2010
%-----------------------------------------------------------------------
function FRes = F_Test_dh_dxv( Xv_km1_k, yi, cam, Xv_km1_k0 )
h0 = hi( yi, Xv_km1_k0, cam);
nCols = size( Xv_km1_k, 2 );
FRes = zeros( 2, nCols );
for j = 1:nCols
FRes( :, j ) = hi( yi, Xv_km1_k( :, j ), cam ) - h0;
end
return