% Randy Dimmett % Semester Project % Readline reads in a line of text in .BMP format % and then converts it to text. [fname,pname] = uigetfile('*.bmp','Select a BITMAP file'); addpath(pname); Img1 = imread(fname); BW = im2bw(Img1,.5); % Prepare input: [IRows,ICols]=size(BW); imshow(BW) while(IRows27 | testout<1) charout='?'; else charout=charset(testout); end fprintf(fid,charout); Colsctr=Colsctr+MaxCols; outtext=[ outtext charout]; start=start+BWLength; end fclose(fid); disp('Input processed.'); disp(outtext);