writepgm.m in pca_ann.rar
Sponsored links
function writepgm(image,filename)
%------------------------------------------------------------
% matrix = readpgm(filename)
%
%
% WRITEPGM(FILENAME) creates an image-file from a matrix,
% The file is a binary portable gray map image.(PGM 256-levels)
%
% Algorithm:
% Standard file Writer
%
% ------------------/* Avraam Kasapis 2003*\------------------
if ~(image <= 255 & image >= 0)
er
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.