testet.m
来自「Mathematical Methods by Moor n Stiling.」· M 代码 · 共 24 行
M
24 行
% testet.m
% Test the emission tomography code
% This script loads an image file, plots it, then calls the
% code to test the tomographic reconstruction
% Copyright 1999 by Todd K. Moon
% Load and plot the original image
load ../data/im1; % an image scaled so 255=white (variable=im)
[nr,nc] = size(im);
subplot(2,2,1); imagesc(uint8(im)); colormap(gray); axis image;
set(gca,'XTick',[]); set(gca,'YTick',[]); drawnow;
im = 255*ones(nr,nc)-im; % scale so 0=white
% Call the ET stuff
et1
% Scale the result for plotting
lambdac = 255*ones(nr,nc) - 255*lambda/max(max(lambda));
subplot(2,2,2); imagesc(lambdac); axis image;
set(gca,'XTick',[]); set(gca,'YTick',[]);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?