Benchmark images/learningdepth

From neurov.is/on

Jump to: navigation, search
function depth2png( )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
files = dir(fullfile('.','*.mat'));
for i = 1:length(files)
    fn = [files(i).name(1:length(files(i).name)-3) 'png'];
    fprintf('Converting %s to %s...', files(i).name, fn );
    load( files(i).name );
    imwrite(uint8((depthMap-min(min(depthMap)))/20*255),fn);
    fprintf('\n');
end
end
Personal tools