%Script used to compare noise stability for the isoperimetric and ncuts %algorithms. % %Note: Code involves randomness, so results may be slightly different from % those in thesis. % % %6/14/03 - Leo Grady % Copyright (C) 2002, 2003 Leo Grady % Computer Vision and Computational Neuroscience Lab % Department of Cognitive and Neural Systems % Boston University % Boston, MA 02215 % % This program is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License % as published by the Free Software Foundation; either version 2 % of the License, or (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. % % Date - $Id: fig3.m,v 1.1 2006/02/19 21:06:16 jonnyreb Exp $ %========================================================================% %Initialization X=100; Y=100; radius=25; center=[X/2,Y/2]; scaleIso=95; stopIso=1e-5; scaleNC=35; stopNC=1e-2; tiles=50; shotMult=5000; minNoise=0; maxNoise=.2; %Generate image img=zeros(X,Y); [y x]=meshgrid(1:X,1:Y); index=find(sqrt((x-center(1)).^2 + (y-center(2)).^2)