Azzera filtri
Azzera filtri

Error in the medical image display

1 visualizzazione (ultimi 30 giorni)
Sakshi Ahuja
Sakshi Ahuja il 14 Dic 2019
Commentato: Sakshi Ahuja il 16 Dic 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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by