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
|
Rev | Line | |
---|
[37] | 1 | function 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 |
|
---|
| 12 | if isempty(x)
|
---|
| 13 | x = [];
|
---|
| 14 | return;
|
---|
| 15 | end
|
---|
| 16 |
|
---|
| 17 | d = size(x,1) - 1;
|
---|
| 18 | x = x(1:d,:)./(ones(d,1)*x(end,:));
|
---|
| 19 |
|
---|
| 20 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.