source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/zisserman/vgg_multiview/vgg_get_homg.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: 322 bytes
Line 
1function x = vgg_get_homg(x)
2% h = vgg_get_homg(p)
3%
4% Convert a set of non-homogeneous points into homogeneous points
5% Points are stored as column vectors, stacked horizontally, e.g.
6%  [x0 x1 x2 x3 ... xn ;
7%   y0 y1 y2 y3 ... yn]
8
9% Modified by TW
10
11if isempty(x)
12  return
13end
14
15x(end+1,:) = 1;
16
17return
Note: See TracBrowser for help on using the repository browser.