Home > Source > Irrelevant > show_brain_and_pts.m

show_brain_and_pts

PURPOSE ^

Imported from Kate

SYNOPSIS ^

function show_brain_and_pts(imagefile, pointsfile, targetpointsfile)

DESCRIPTION ^

 Imported from Kate

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function show_brain_and_pts(imagefile, pointsfile, targetpointsfile)
0002 % Imported from Kate
0003 
0004 % This function takes as input:
0005 %    The image file
0006 %    The points files for that image
0007 %    The target points file for that image
0008 %
0009 % It returns nothing but plots points and target points superimposed on he original image
0010 
0011 [im, map] = imread(imagefile); % read image
0012 [x,y] = read_brain_points(pointsfile); % get image points
0013 [targetx,targety] = read_brain_points(targetpointsfile); % get target points of image
0014 imfig = figure;, imshow(im); % preview image
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 % show points and target points superimposed on the original image
0019 
0020 set(imfig,'Name',imagefile);
0021

Generated on Fri 14-May-2004 10:05:30 by m2html © 2003