Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Display multiple dicom images
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
NINITHA GEORGE

Posts: 3
Registered: 4/28/13
Display multiple dicom images
Posted: Apr 2, 2013 4:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
Iam working on matlab gui.. i have loaded the dicom file .. iam stuck on the problem where i need to display multiple dicom images in gui. i have used this code to load dicom files. iam very much new to matlab gui..
can anyone please help me with this..
Thanks in advance
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles.output = hObject;
filesel= uigetdir('*.dcm','select dicom folder');
handles.output = filesel;
FilesSelecteds=dir(filesel);
path=([filesel, '\']);
numofphases=20;
%guidata(hObject, handles);
No_of_files=size(FilesSelecteds);
filelist=FilesSelecteds(3).name;
num_of_files=No_of_files(1)-2;
for i=4:No_of_files
filelist=[filelist;FilesSelecteds(i).name];
end
filename=[path,char,(filelist(3,:))];
FileNames=filelist;
imaVOL = [];scaninfo = [];


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dcminfo = dicominfo(filename);
SliceImage = dicomread(dcminfo);



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.