![untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254585/untitled.png)
Error in the medical image display
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sakshi Ahuja
am 14 Dez. 2019
Kommentiert: Sakshi Ahuja
am 16 Dez. 2019
I am having an image stored in structure array(attached). When I am trying to display the image it is not coming properly (attached). Code used:
V = 2225:1:2225;
N = numel(V);
for kk = 1:N
F = sprintf('%d.mat',V(kk));
S = load(F);
C= S.cjdata.image;
T_1 = squeeze(C);
imshow(T_1);
end
0 Kommentare
Akzeptierte Antwort
Akira Agata
am 16 Dez. 2019
How about the following?
imshow(T_1,[]);
In addition, I believe the line 'T_1 = squeeze(C);' can be deleted.
![untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254585/untitled.png)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!