clear all u0_color = imread('two.jpg'); u0_color = double(u0_color); u0(:,:) = u0_color(:,:,1); u0 = u0+0.1*max(max(u0))*randn(size(u0)) figure(1) imagesc(u0, [0 255]); colormap(gray);axis off axis image; pause(1) [phi,c1,c2] = ActiveContours_const(u0, 0.1 * 255 * 255,1, 1,100);