hi, i am loading dicom images with dicomread command, and it goes fine. but when i perform imshow or imtool to that image, it shows a gray image. there is patient data and figure of lungs on that dicom image, but when i perform imshow or imtool it shows that gray image... so is there any solution to get that original image... ???

 採用された回答

Chandra Kurniawan
Chandra Kurniawan 2011 年 12 月 30 日

1 投票

Hello,
Try to use imshow(I,[])
or montage(I, 'DisplayRange', []);

4 件のコメント

Usama Javed
Usama Javed 2011 年 12 月 30 日
thank u so much... worked great...
Usama Javed
Usama Javed 2011 年 12 月 30 日
i am applying median filter to the dicom images but errorsss... :(
here is the code
dicomlist = dir(fullfile(pwd,'Images','*.dcm'));
for cnt = 1 : numel(dicomlist)
I{cnt} = dicomread(fullfile(pwd,'Images',dicomlist(cnt).name));
end
for num = 1: numel(dicomlist)
K{num}=medfilt2(I{num});
end
ERRORS:-
??? Error using ==> ordf
Out of range value in OFFSETS.
Error in ==> ordfilt2 at 82
B = ordf(A, order, offsets, [padSize padSize] + 1, ...
Error in ==> medfilt2 at 65
b = ordfilt2(a, order, domain, padopt);
Chandra Kurniawan
Chandra Kurniawan 2011 年 12 月 30 日
Hi,
It works on my machine. And no error found
dicomlist = dir(fullfile(pwd,'Images','*.dcm'));
for cnt = 1 : numel(dicomlist)
I{cnt} = dicomread(fullfile(pwd,'Images',dicomlist(cnt).name));
end
for num = 1: numel(dicomlist)
K{num} = medfilt2(I{num});
figure, imshow(K{num},[]);
end
Usama Javed
Usama Javed 2011 年 12 月 30 日
i think its the problem of memory...
if i am applying this on 700 images than it works...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で DICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by