RLEdecode.m
资源名称:work.rar [点击查看]
上传用户:hwtw888
上传日期:2016-03-15
资源大小:177k
文件大小:0k
源码类别:
压缩解压
开发平台:
Matlab
- function unzipped = RLEdecode(zip, info)
- zip = uint8(zip);
- [m, n] = size(zip);
- unzipped = [];
- for i = 1: m
- section = repmat(zip(i, 1), 1, double(zip(i, 2)));
- unzipped = [unzipped section];
- end
- unzipped = reshape(unzipped, info.rows, info.cols);