sravan2003_2003
September 1st, 2004, 06:09 AM
Hi all ,
I am newbie in Matlab.I have a function which loads a image and reshapes it .
The code for the function is
function read_2D_ima()
[FileName,PathName] = uigetfile('*','Bitte Start File waehlen:')
% f=fopen('2345-107-216.ima','r');
f=fopen(FileName,'r');
fid=fread(f,'int16');
fclose(f);
fid2=reshape(fid,256,256);
B = imrotate(fid2,-90);
colormap(gray);
imagesc(B);
axis image
*******************************************************
But when I run it displays a menu,toolbar and some other things like zooming on and out etc etc which i have not written in the code.
I want to know how this is possible.I have written the code for just uploading the image and viewing it.
I hope you have understood my problem.
Any help in this regard will be appreciated.
Thanks,
Sravan
I am newbie in Matlab.I have a function which loads a image and reshapes it .
The code for the function is
function read_2D_ima()
[FileName,PathName] = uigetfile('*','Bitte Start File waehlen:')
% f=fopen('2345-107-216.ima','r');
f=fopen(FileName,'r');
fid=fread(f,'int16');
fclose(f);
fid2=reshape(fid,256,256);
B = imrotate(fid2,-90);
colormap(gray);
imagesc(B);
axis image
*******************************************************
But when I run it displays a menu,toolbar and some other things like zooming on and out etc etc which i have not written in the code.
I want to know how this is possible.I have written the code for just uploading the image and viewing it.
I hope you have understood my problem.
Any help in this regard will be appreciated.
Thanks,
Sravan