Ignore:
Timestamp:
Feb 18, 2016, 12:05:51 PM (8 years ago)
Author:
sommeria
Message:

geometry cqlib updated

File:
1 edited

Legend:

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

    r924 r926  
    1 %=======================================================================
    2 % Copyright 2008-2016, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France
    3 %   http://www.legi.grenoble-inp.fr
    4 %   Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr
    5 %
    6 %     This file is part of the toolbox UVMAT.
    7 %
    8 %     UVMAT is free software; you can redistribute it and/or modify
    9 %     it under the terms of the GNU General Public License as published
    10 %     by the Free Software Foundation; either version 2 of the license,
    11 %     or (at your option) any later version.
    12 %
    13 %     UVMAT is distributed in the hope that it will be useful,
    14 %     but WITHOUT ANY WARRANTY; without even the implied warranty of
    15 %     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16 %     GNU General Public License (see LICENSE.txt) for more details.
    17 %=======================================================================
    18 
    191function [xp,dxpdom,dxpdT,dxpdf,dxpdc,dxpdk,dxpdalpha] = project_points2(X,om,T,f,c,k,alpha)
    202
     
    240222% Pixel coordinates:
    241223if length(f)>1,
    242     xp = xd3 .* (f * ones(1,n))  +  c*ones(1,n);
     224    xp = xd3 .* (f(:) * ones(1,n))  +  c(:)*ones(1,n);
    243225    if nargout > 1,
    244         coeff = reshape(f*ones(1,n),2*n,1);
     226        coeff = reshape(f(:)*ones(1,n),2*n,1);
    245227        dxpdom = (coeff*ones(1,3)) .* dxd3dom;
    246228        dxpdT = (coeff*ones(1,3)) .* dxd3dT;
Note: See TracChangeset for help on using the changeset viewer.