Code covered by the BSD License  

Highlights from
Toolbox Fast Marching

image thumbnail

Toolbox Fast Marching


Gabriel Peyre (view profile)


24 Oct 2004 (Updated )

A toolbox for the computation of the Fast Marching algorithm in 2D and 3D.

function v2 = prod_vf_sf(v1,s)

% prod_vf_sf - compute the product of a vector field by a scalar field.
%   v2 = prod_vf_sf(v1,s)
%   The result is the vector field defined by pointwise product.
%   Copyright (c) 2004 Gabriel Peyr

v2 = zeros(size(v1));

for i=1:size(v1,3)
    v2(:,:,i) = v1(:,:,i).*s;

Contact us