Code covered by the BSD License  

Highlights from
uiselectim

5.0

5.0 | 2 ratings Rate this file 11 Downloads (last 30 days) File Size: 3.49 KB File ID: #12984
image thumbnail

uiselectim

by Brett Shoelson

 

12 Nov 2006 (Updated 28 Jun 2010)

Visually select a single image from an array of images in a directory.

| Watch this File

File Information
Description

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.)

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
16 Aug 2008 Alex Leung

Great GUI to select an image!

16 Jan 2012 Amit Shachaf

Very nice utility

Please login to add a comment or rating.
Updates
04 May 2010

added copyright

21 Jun 2010

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

28 Jun 2010

6/25/2010 Addressed minor comment issue.

Tag Activity for this File
Tag Applied By Date/Time
gui Brett Shoelson 22 Oct 2008 08:48:56
display Brett Shoelson 22 Oct 2008 08:48:56
annotation Brett Shoelson 22 Oct 2008 08:48:56
select image Brett Shoelson 22 Oct 2008 08:48:56
subplot Brett Shoelson 22 Oct 2008 08:48:56
array Brett Shoelson 22 Oct 2008 08:48:56
background patch Brett Shoelson 22 Oct 2008 08:48:56
image processing Brett Shoelson 22 Oct 2008 08:48:56
disp Brett Shoelson 22 Oct 2008 08:48:56

Contact us at files@mathworks.com