Be the first to rate this file! 19 downloads (last 30 days) File Size: 2.87 KB File ID: #18877

Getting a list of files and image batch processing

by Marco Zuliani

 

21 Feb 2008 (Updated 30 May 2008)

No BSD License  

Grep-like and image batch processing functions

Download Now | Watch this File

File Information
Description

get_file_list is a function to recursively retrieve files whose name match a given regular expression. imbatchconvert uses get_file_list to perform image batch processing. Example:

% batch cropping of the images

options.Func = 'imcrop';
options.FuncPar = [10 10 40 40];
options.Verbose = true;
options.NameSuffix = '_cropped';
src_dir = '/Users/zuliani/Research/TestImages/Wall/originals';
dst_dir = '/Users/zuliani/Research/TestImages/Wall/cropped';
idsrc = 'ppm';
iddst = 'jpg';
options = imbatchconvert(src_dir, idsrc, dst_dir, iddst, true, options);

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Zip File Content  
Other Files get_file_list.m,
imbatchconvert.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
22 Feb 2008

Typo

30 May 2008

Updates

Tag Activity for this File
Tag Applied By Date/Time
image batch processing Marco Zuliani 22 Oct 2008 09:50:16
regular expression Marco Zuliani 22 Oct 2008 09:50:16
grep Marco Zuliani 22 Oct 2008 09:50:16
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com