-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathim73Dplot.m
More file actions
27 lines (25 loc) · 771 Bytes
/
im73Dplot.m
File metadata and controls
27 lines (25 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function [ output_args ] = im73Dplot(foldername, fileNumber)
run('symphonySettings');
if nargin < 2
fileNumber = 4;
end
fileRegex = ['B' sprintf('%05d', fileNumber) '*.im7'];
h = axes();
set(h, 'CLim', colorLimits(fileNumber,:));
grid on;
hold all;
for i=1:size(foldername)
folder = char(foldername(i));
filename = dir([folder '/' fileRegex]);
if(isempty(filename))
err = MException('Im7Convert:FileNotFound', ['The folder ' folder ' does not contain the file you specified.']);
throw(err);
end
filename = [folder '/' filename.name];
v = im7Load(filename);
plane = ones(size(v.y,2),size(v.x,2)).*(str2double(getAttribute(v.setname, 'd'))*D);
[x,z] = meshgrid(v.x,v.y);
surf(plane,x,z,v.w', 'EdgeColor', 'none');
alpha(0.8)
end
end