testread.m
来自「matlab代码」· M 代码 · 共 17 行
M
17 行
function b = testread(w);
% read the image w
% and cut it to a 200*200 image with 8 bit/pixels
a=imread(w);
a1 = double(a);
[height,width]=size(a1);
centerx=ceil(width/2);
centery=ceil(height/2);
b = a1(centery-99:centery+100,centerx-99:centerx+100);
%imagesc(b);
%colormap(gray);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?