www.pudn.com > level_set_methods_1.1.zip > get_dt_kappa.m, change:2005-05-05,size:360b


function [dt] = get_dt_kappa(alpha, dx, dy, b, dx2, dy2) 
% 
% Calculate the Euler time step. 
% 
% Author: Baris Sumengen  sumengen@ece.ucsb.edu 
% http://vision.ece.ucsb.edu/~sumengen/ 
% 
 
if alpha <= 0 | alpha >= 1  
    error('alpha needs to be between 0 and 1!'); 
end 
 
maxs = max(max((2*b)/dx2 + (2*b)/dy2)); 
dt = alpha/(maxs+(maxs==0));