evolve2D.m in LevelSetMethods.rar


Commonly used in image segmentation level set method matlab source code!...Original Link
    Sponsored links

			
function [phi] = evolve2D(phi, dx, dy, alpha, iterations, accuracy, is_signed_distance, normal_evolve, Vn, vector_evolve, u, v, kappa_evolve, b)
%
% function [phi] = evolve2D(phi, dx, dy, iterations, accuracy, ...
%   is_signed_distance, normal_evolve, Vn, vector_evolve, u, v, kappa_evolve, b)
%
% Calculates evolution for a 2D curve (3D level set function) phi.
% phi is the input level set function. 
%
% dx and dy are the resolution of the grid at x and y dimensions.
% alpha is a constant for calculating the euler step (dt). Should
% be between 0 and 1. 0.5 is quite safe whereas 0.9 can be risky.
% iterations specifies the number of iterations before the function returns.
% normal_evolve, vector_evolve, kappa_evolve should be either set to 0 and 1. This
% indicates if these forces are present or not. If any of these are set to 1,
% corresponding  variables (e.g. Vn, u, v, b) should not be an empty array []. if
% either normal_evolve or vector_evolve are set to 1, accuracy needs to be specified,
% otherwise accuracy can be set to an empty array. Allowed values for accuracy are
% 'ENO1', 'ENO2', 'ENO3', 'WENO'. These correspond to 1st, 2nd, 3rd and 5th order
% accurate schemes for calculating the derivative of phi. if both normal_evolve and
% vector_evolve are set to 1, then is_signed_distance needs to be specified. If phi is
% approximately a signed distance function, set this variable to 1. If
% is_signed_distance == 1, Godunov scheme will be used, otherwise Stencil Local
% Lax-Friedrichs (SLLF) scheme will be used (See Osher&Fedkiw section 6.4).
%
% Other variables (these are either a scalar or of the same size as phi):
% Vn: Force in the normal direction.
% u: x component of the vector field
% v: y component of the vector field
% b: this specifies the weighting for the curvature (always positive everywhere).
%
% Author: Baris Sumengen  sumengen@ece.ucsb.edu
% http://vision.ece.ucsb.edu/~sumengen/
%


tic

if alpha <= 0 | alpha >= 1 
    error('alpha needs to be between 0 an			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 evolve_normal_vector_ENO1_SD.m1.69 kB05-05-05 00:00
 evolve_normal_vector_ENO1.m1.27 kB05-05-05 00:00
 evolve_normal_ENO3.m1.43 kB05-05-05 00:00
 evolve_normal_ENO2.m1.43 kB05-05-05 00:00
 evolve_normal_ENO1.m1.43 kB05-05-05 00:00
 evolve_kappa.m1.71 kB05-05-05 00:00
 evolve2D.m10.75 kB12-05-05 07:10
 der_WENO_plus.m1.56 kB05-05-05 00:00
 der_WENO_minus.m1.56 kB05-05-05 00:00
 der_ENO3_plus.m1.49 kB05-05-05 00:00
 der_ENO3_minus.m1.49 kB05-05-05 00:00
 der_ENO2_plus.m1.22 kB05-05-05 00:00
 der_ENO2_minus.m1.22 kB05-05-05 00:00
 der_ENO1_plus.m618.00 B06-05-05 00:00
 der_ENO1_minus.m624.00 B05-05-05 00:00
 curvature.m1.74 kB05-05-05 00:00
 get_dt_normal_vector_kappa.m408.00 B05-05-05 00:00
 get_dt_normal_vector.m363.00 B05-05-05 00:00
 get_dt_normal_kappa.m399.00 B05-05-05 00:00
 get_dt_normal.m356.00 B05-05-05 00:00
 get_dt_kappa.m360.00 B05-05-05 00:00
 evolve_vector_WENO.m673.00 B05-05-05 00:00
 evolve_vector_ENO3.m672.00 B05-05-05 00:00
 evolve_vector_ENO2.m672.00 B05-05-05 00:00
 evolve_vector_ENO1.m674.00 B05-05-05 00:00
 evolve_normal_WENO.m1.43 kB05-05-05 00:00
 evolve_normal_vector_WENO_SD.m1.60 kB05-05-05 00:00
 evolve_normal_vector_WENO.m1.27 kB05-05-05 00:00
 evolve_normal_vector_ENO3_SD.m1.60 kB05-05-05 00:00
 evolve_normal_vector_ENO3.m1.27 kB05-05-05 00:00
 evolve_normal_vector_ENO2_SD.m1.60 kB05-05-05 00:00
 evolve_normal_vector_ENO2.m1.27 kB05-05-05 00:00
 select_der_normal.m901.00 B05-05-05 00:00
 reinit_SD.m1.65 kB05-05-05 00:00
 LLF_normal_vector.m2.35 kB05-05-05 00:00
 kappa.bmp1.62 kB12-05-05 06:58
 init_vector_WENO.m301.00 B05-05-05 00:00
 init_vector_ENO3.m299.00 B05-05-05 00:00
 init_vector_ENO2.m299.00 B05-05-05 00:00
 init_vector_ENO1.m299.00 B05-05-05 00:00
 init_normal_WENO.m231.00 B05-05-05 00:00
 init_normal_ENO3.m231.00 B05-05-05 00:00
 init_normal_ENO2.m231.00 B05-05-05 00:00
 init_normal_ENO1.m231.00 B05-05-05 00:00
 init_kappa.m256.00 B05-05-05 00:00
 get_dt_vector_kappa.m396.00 B05-05-05 00:00
 get_dt_vector.m351.00 B05-05-05 00:00
 upwind_WENO.m1.98 kB05-05-05 00:00
 upwind_ENO3.m1.82 kB05-05-05 00:00
 upwind_ENO2.m1.55 kB05-05-05 00:00
 upwind_ENO1.m1.05 kB05-05-05 00:00
 test.m1.35 kB06-05-05 00:00
 select_der_normal_vector_SD.m1.07 kB16-05-05 15:40
 retina.bmp123.68 kB18-11-04 00:00
 <LevelSetMethods>0.00 B16-03-07 11:03
...

Related Items

    Sponsored links