imgetfile
Display Open Image dialog box
Description
[
displays the Open Image dialog box. Use this dialog box in imaging applications to get the name of the image file a user wants to open. The Open Image dialog box includes only files that use supported image file formats (listed infilename
,user_canceled
] = imgetfileimformats
) and DICOM files. When the user selects a file and clicksOpen,imgetfile
returns the full path of the file infilename
and sets theuser_canceled
return value tofalse
. If the user clicksCancel,imgetfile
returns an empty character vector (''
) infilename
and sets theuser_canceled
return value totrue
.
Note
The Open Image dialog box is modal; it blocks the MATLAB®command line until the user responds.
[
supports name-value parameter arguments that you can use to control aspects of its behavior.filename
,user_canceled
] = imgetfile(Name,Value
)
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a