imdisp.m
资源名称:Snakes.rar [点击查看]
上传用户:zlding2008
上传日期:2013-05-13
资源大小:1914k
文件大小:0k
源码类别:
2D图形编程
开发平台:
Matlab
- function imdisp(I)
- % imdisp(I) - scale the dynamic range of an image and display it.
- x = (0:255)./255;
- grey = [x;x;x]';
- minI = min(min(I));
- maxI = max(max(I));
- I = (I-minI)/(maxI-minI)*255;
- image(I);
- axis('square','off');
- colormap(grey);