Diff of /matlab/bmp2png.m [000000] .. [b758a2]

Switch to unified view

a b/matlab/bmp2png.m
1
function bmp2png(folder)
2
3
listing = dir([folder '*.bmp']);
4
5
for i=1:size(listing)
6
    infile = [folder listing(i).name];
7
    [pathstr, name, ext] = fileparts(infile);
8
    outfile = [pathstr '/' name '.png'];
9
    A = imread(infile);
10
    imwrite(A,outfile)
11
end