Changeset 926 for trunk/src/toolbox_calib/project_points2.m
- Timestamp:
- Feb 18, 2016, 12:05:51 PM (9 years ago)
- 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, France3 % http://www.legi.grenoble-inp.fr4 % Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr5 %6 % This file is part of the toolbox UVMAT.7 %8 % UVMAT is free software; you can redistribute it and/or modify9 % it under the terms of the GNU General Public License as published10 % 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 of15 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16 % GNU General Public License (see LICENSE.txt) for more details.17 %=======================================================================18 19 1 function [xp,dxpdom,dxpdT,dxpdf,dxpdc,dxpdk,dxpdalpha] = project_points2(X,om,T,f,c,k,alpha) 20 2 … … 240 222 % Pixel coordinates: 241 223 if 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); 243 225 if nargout > 1, 244 coeff = reshape(f *ones(1,n),2*n,1);226 coeff = reshape(f(:)*ones(1,n),2*n,1); 245 227 dxpdom = (coeff*ones(1,3)) .* dxd3dom; 246 228 dxpdT = (coeff*ones(1,3)) .* dxd3dT;
Note: See TracChangeset
for help on using the changeset viewer.