matlab convert to PGM P2

ccwwff發表於2018-12-05
I0=imread('im2.png');
imwrite(I0, 'im2.pgm', 'encoding', 'ascii');

refer to: https://ww2.mathworks.cn/help/matlab/ref/imwrite.html#mw_c82bd312-85d7-441a-a000-a486486faa35

相關文章