uiselectim

Visually select a single image from an array of images in a directory.
ダウンロード: 3.3K
更新 2016/9/1

ライセンスの表示

Syntax:
[img, map, alpha, filename, pathname, allFileNames] = uiselectim('start_path');

Provides functionality for visually selecting a single image from an array of images. All images must be in a common directory. Calls uigetfile with the multi-select option enabled, allowing the user to select any number of images. The layout tool will automatically display images in a subplot array. If you single-click an image, a background patch is highlighted to show the selection. Double-clicking (or selecting the "Okay" button) finalizes the selection, and returns the selected image (and map and alpha value, where appropriate), the filename, and the pathname.

INPUT:
start_path (optional): start_path specifies the directory to display when the dialog is first opened. If start_path is a string representing a valid directory path, the dialog box opens in the specified directory. If start_path is an empty string ('') or is not provided, the dialog box opens in the current working directory.

OUTPUTS:
Output arguments 1--3 map to the output arguments of IMREAD. Note that MAP and ALPHA may be empty. FILENAME and PATHNAME, not surprisingly, return the filename and pathname of the selected image. ALLFILENAMES returns a (sorted) list of the names of all images selected for display in UISELECTIM. (See help for IMREAD for additional information about the first three output arguments.)

引用

Brett Shoelson (2024). uiselectim (https://www.mathworks.com/matlabcentral/fileexchange/12984-uiselectim), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2006b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.5.0.1

Updated license

1.5.0.0

6/25/2010 Addressed minor comment issue.

1.2.0.0

Updated M file and license text file copyright to The MathWorks, Inc.

1.1.0.0

added copyright

1.0.0.0