Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected output #9

Open
christinenasser22 opened this issue Feb 21, 2018 · 0 comments
Open

Expected output #9

christinenasser22 opened this issue Feb 21, 2018 · 0 comments

Comments

@christinenasser22
Copy link

Hiii ,
First of all I want to know or see the expected output as the code doesn't run with me ,so i can know where is the problem ,also i have this error if anyone can help me

Error in suma_stitch (line 9)
[e, em, lst] = zglobb({sprintf('%s*', imaname)});
and this is the code
function A = suma_stitch(imaname)
% A function to put together a series of suma recorder images
% Very crude, only for the intrepid.
% Example: A = suma_stitch('imageseries_');
%The would be the images as spat out by the recorder window after
% a suma 'r' key stroke with SUMA_SnapshotOverSampling > 1

figure(1); clf
[e, em, lst] = zglobb({sprintf('%s*', imaname)});
N_im = length(lst)
N_1 = round(sqrt(N_im))
k=1
figure(1); clf
for (i=1:1:N_1),
for (j=1:1:N_1),
%k = ((i-1)+(j-1)*N_1)+1
lst(k).name
a = imread(lst(k).name); size(a)
if (k==1), A = zeros(N_1.*size(a,1), N_1.*size(a,2), size(a,3), 'uint8'); end
istrt = (N_1-i)*size(a,1) + 1;
istp = istrt + size(a,1) - 1;
jstrt = (j-1)*size(a,2) + 1;
jstp = jstrt + size(a,2) - 1;
istrt, istp-istrt, jstrt, jstp-jstrt,
A(istrt:istp,jstrt:jstp,:) = a;
subplot (N_1, N_1, k); image(a); title(lst(k).name); drawnow;
k = k +1;
end
end

figure(2); clf
image(A); axis square; drawnow
info = imfinfo(lst(1).name);info.Format
imwrite(A, sprintf('%s_stitch.%s', imaname, info.Format), info.Format);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant