dispimg.m
来自「kmeans clustering in matlab」· M 代码 · 共 16 行
M
16 行
function dispimg(img)% displays an intensity image (on any intensity scale) using a gray-scale colormap% with 256 colors. The intensity data are scaled to use the full colormap, i.e.,% the darkest pixel is mapped to 1 and the brightest to 256% first create a temporary image which maps the darkest pixel to% 1 and the brightest pixel to 256, using the utility function scale.my = scale(img,-Inf,Inf,1,256);% now plot the image.....figure; image(y);colormap(gray(256));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?