You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
308 B

%H2E Homogeneous to Euclidean
%
% E = H2E(H) is the Euclidean version (K-1xN) of the homogeneous
% points H (KxN) where each column represents one point in P^K.
%
% See also E2H.
function e = h2e(h)
if isvector(h)
h = h(:);
end
e = h(1:end-1,:) ./ repmat(h(end,:), numrows(h)-1, 1);