📄 testet.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -