0001 function show_brain_and_pts(imagefile, pointsfile, targetpointsfile)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 [im, map] = imread(imagefile);
0012 [x,y] = read_brain_points(pointsfile);
0013 [targetx,targety] = read_brain_points(targetpointsfile);
0014 imfig = figure;, imshow(im);
0015 hold on, plot(x(1:length(x)),y(1:length(x)),'go','MarkerSize',3), xlabel(['No of points: ',num2str(length(x(:)))]);
0016 hold on, plot(targetx(1:length(targetx)),targety(1:length(targetx)),'rx','MarkerSize',3);
0017
0018
0019
0020 set(imfig,'Name',imagefile);
0021