Hi Everyone.
Anyone can help me. If i have 20 slice image PET (256x256 dimensions, dicom format), how to me:
1)display all the slice?
2) at the same time, when i move the courser at every picture, i it will show the location(X, Y) and the pixel value(intensity) such as use imtool code.
Here is my try code: alldata = zeros(256, 256, 20); for K = 1 : 20 petname = sprintf('PET%03d.dcm', K); alldata(:, :, K) = combinedata; end
montage(alldata, []);
BUT IS DOES'T WORK
Anyone please help me

1 Kommentar

mohd akmal masud
mohd akmal masud am 14 Dez. 2017
Sorry, this is my code
alldata = zeros(256, 256, 20);
for K = 1 : 20
petname = sprintf('PET%03d.dcm', K);
alldata(:, :, K) = dicomread(petname);
end
montage(alldata, []);

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 14 Dez. 2017

0 Stimmen

You need to show one image/slice at a time. For example you can use a slider callback to do it. Don't use montage(). Use imshow() and then call impixelinfo().

3 Kommentare

mohd akmal masud
mohd akmal masud am 14 Dez. 2017
i Used imshow() and then call impixelinfo(). but it only one image. but i want adapt to all image.
Can you help me to give tutorial or any notes to build slider callback?
Sorry all, another question i have but i wrote at this space. please help me
Dear all,
this is my code to view CT image by slice
P = zeros(256, 256, 72);
for K = 1 : 72
petname = sprintf('I4%03d.dcm', K);
P(:,:,K) = dicomread(petname);
end
imshow3D(P)
then, this is my code for view SPECT image by slice,
Noted: all my 42 slice SPECT image stored in one file.
[spect map]=dicomread('128x128');
info = dicominfo('128x128');
gp=info.SliceThickness;
spect=(squeeze(spect));%smooth3
aa=size(spect);aa=aa(3);
imshow3D(spect);
Anybody can help me to fuse both SPECT and CT images for all slice?
Image Analyst
Image Analyst am 24 Mär. 2019
You should ask the author of your imshow3D() function, not us I'm not aware of any such function, and there is no such function in MATLAB.
Maybe you can use volumeviewer() as a substitute if you cannot contact the author of imshow3d.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by