Ignore:
Timestamp:
Feb 17, 2017, 2:51:46 PM (7 years ago)
Author:
g7moreau
Message:
  • Remove tab
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/toolbox_calib/compute_extrinsic.m

    r926 r1000  
    3434%project_points.m: Computes the 2D image projections of a set of 3D points
    3535
    36 
    37 
    3836if nargin < 8,
    3937   thresh_cond = inf;
    4038end;
    41 
    4239
    4340if nargin < 7,
     
    4542end;
    4643
    47 
    4844if nargin < 6,
    49    alpha_c = 0;
    50         if nargin < 5,
    51         kc = zeros(5,1);
    52         if nargin < 4,
    53         cc = zeros(2,1);
    54         if nargin < 3,
    55                 fc = ones(2,1);
    56                 if nargin < 2,
    57                 error('Need 2D projections and 3D points (in compute_extrinsic.m)');
    58                 return;
    59                 end;
    60         end;
    61         end;
    62         end;
     45    alpha_c = 0;
     46    if nargin < 5,
     47        kc = zeros(5,1);
     48        if nargin < 4,
     49            cc = zeros(2,1);
     50            if nargin < 3,
     51                fc = ones(2,1);
     52                if nargin < 2,
     53                    error('Need 2D projections and 3D points (in compute_extrinsic.m)');
     54                    return;
     55                end;
     56            end;
     57        end;
     58    end;
    6359end;
    6460
     
    6965% Refinement:
    7066[omckk,Tckk,Rckk,JJ] = compute_extrinsic_refine(omckk,Tckk,x_kk,X_kk,fc,cc,kc,alpha_c,MaxIter,thresh_cond);
    71 
    7267
    7368% computation of the homography (not useful in the end)
     
    8176ex = x_kk - x;
    8277
    83 
    8478% Converts the homography in pixel units:
    8579
     
    8781
    8882H = KK*H;
    89 
    90 
    91 
    9283
    9384return;
Note: See TracChangeset for help on using the changeset viewer.