source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/zisserman/vgg_multiview/vgg_get_nonhomg.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 394 bytes
Line 
1function x = vgg_get_nonhomg(x)
2% p = vgg_get_nonhomg(h)
3%
4% Convert a set of homogeneous points to non-homogeneous form
5% Points are stored as column vectors, stacked horizontally, e.g.
6%  [x0 x1 x2 ... xn ;
7%   y0 y1 y2 ... yn ;
8%   w0 w1 w2 ... wn ]
9
10% Modified by TW
11
12if isempty(x)
13  x = [];
14  return;
15end
16
17d = size(x,1) - 1;
18x = x(1:d,:)./(ones(d,1)*x(end,:));
19
20return
Note: See TracBrowser for help on using the repository browser.