image display with imtool

5 views (last 30 days)
mohd akmal masud
mohd akmal masud on 14 Dec 2017
Commented: Image Analyst on 24 Mar 2019
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 Comment
mohd akmal masud
mohd akmal masud on 14 Dec 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, []);

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 14 Dec 2017
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 Comments
mohd akmal masud
mohd akmal masud on 24 Mar 2019
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 on 24 Mar 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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!