code of pushbutton to read series image from a file (format DCM)
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
code of pushbutton to read series image from a file (format DCM)
Réponses (1)
Image Analyst
le 28 Juil 2013
0 votes
Did you look up the help for dimcomread()? Doesn't that example help you?
2 commentaires
zerr hamza
le 28 Juil 2013
Modifié(e) : zerr hamza
le 28 Juil 2013
Image Analyst
le 28 Juil 2013
Try this to have a user browse to select a file:
% Have user browse for a file, from a specified "starting folder."
% For convenience in browsing, set a starting folder from which to browse.
startingFolder = 'C:\Program Files\MATLAB';
if ~exist(startingFolder, 'dir')
% If that folder doesn't exist, just start in the current folder.
startingFolder = pwd;
end
% Get the name of the file that the user wants to use.
defaultFileName = fullfile(startingFolder, '*.*');
[baseFileName, folder] = uigetfile(defaultFileName, 'Select a file');
if baseFileName == 0
% User clicked the Cancel button.
return;
end
fullFileName = fullfile(folder, baseFileName)
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!