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

mohd akmal masud
mohd akmal masud 2017년 12월 14일
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, []);

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2017년 12월 14일

0 개 추천

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

mohd akmal masud
mohd akmal masud 2017년 12월 14일
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 2019년 3월 24일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2017년 12월 14일

댓글:

2019년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by