


This function takes as input:
The image file
The points files for that image
The target points file for that image
It returns nothing but plots points and target points superimposed on he original image

0001 function show_brain_and_pts(imagefile, pointsfile, targetpointsfile) 0002 0003 % This function takes as input: 0004 % The image file 0005 % The points files for that image 0006 % The target points file for that image 0007 % 0008 % It returns nothing but plots points and target points superimposed on he original image 0009 0010 [im, map] = imread(imagefile); % read image 0011 [x,y] = read_brain_points(pointsfile); % get image points 0012 [targetx,targety] = read_brain_points(targetpointsfile); % get target points of image 0013 imfig = figure;, imshow(im); % preview image 0014 hold on, plot(x(1:length(x)),y(1:length(x)),'go','MarkerSize',3), xlabel(['No of points: ',num2str(length(x(:)))]); 0015 hold on, plot(targetx(1:length(targetx)),targety(1:length(targetx)),'rx','MarkerSize',3); 0016 0017 % show points and target points superimposed on the original image 0018 0019 set(imfig,'Name',imagefile); 0020