Error in the medical image display

2 次查看(过去 30 天)
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

采纳的回答

Akira Agata
Akira Agata 2019-12-16
How about the following?
imshow(T_1,[]);
In addition, I believe the line 'T_1 = squeeze(C);' can be deleted.
untitled.png
  1 个评论
Sakshi Ahuja
Sakshi Ahuja 2019-12-16
This resolved my issue and one more solution to this:
T_1=mat2gray(C);
imshow(T_1)
'T_1 = squeeze(C) is deleted.

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by