Scripting > Tasks > Batch Processing
The Batch Processing tool is in the Tasks group on the Scripting ribbon. It provides controls you can use to set up batch processing routines -- routines that loop through a whole collection of images running the same macro on each image. When you click on this tool, the Batch Processing dialog box appears which allows you to set up your batch job. Click here for step by step instructions for setting up and running a batch processing job.
The controls of the Batch Processing Macros group are described below.
Select Macros
Run Before: This pull-down list box allows you to specify a preprocessing macro to be run once before batch processing begins. If the macro you want to select does not appear in the list box, you can select it using the Select Macro tool to the right of the Run Before list box.
Loop On: In this pull-down list box, select the macro you want to be used for batch processing of images. The macro you select here will be run once on each image in the specified image collection (as defined through the Data Source control). If the macro you want to select does not appear in the list box, you can select it using the Select Macro tool to the right of the Loop On list box.
Run After: This pull-down list box allows you to specify a post-processing macro to be run once after batch processing has completed. If the macro you want to select does not appear in the list box, you can select it using the Select Macro tool to the right of the Run After list box.
Select Images
Select Images: Use the controls in this group to identify specific images that you want batch processed, or to identify a folder that contains the images you want processed. Do either (a) or (b) described below.
(a) Click
on Select Folder tool to select a folder containing
the images you want batch processed. If you select a folder, Image-Pro will process all images in that folder that match the file format you select through the Select Folder sub-menu. Click the down-arrow to the right of the folder icon to show the sub-menu with these options:
Include Subfolders: Select this option to have Image-Pro process images not only in the folder you selected, but also all subfolders of the selected folder.
File Formats: From this list box, select the file format of the images that you want batch processed in the selected folder.
-- or --
(b) Click on the Add Images tool to manually select -- from the set of currently open images -- those that you want batch processed. When you click on this tool, all currently-opened images are listed. Click on the ones you want processed; this adds them to the Selected Images list box.
Formats: You can use this pull-down list box to limit batch processing of images to a specific image format. If you select "*.tiff" for example, Image-Pro will execute the Loop On macro only on TIFF files; all other files will be ignored.
Start Batch Processing
Start:
Click this button to initiate batch process of the selected image collection
using the selected Loop On macro.
The available
options for batch processing are described below.
- Display Task Manager: Select this option to display the Task Manager window while batch processing is in progress.
- Display Documents: Select this option to have Image-Pro display each document in the application workspace as it is running the Loop On macro on it.
- Save Modified Documents: Select this option to have Image-Pro automatically save modified documents after they are processed.
- Close Documents: Select this option to have Image-Pro automatically close documents after they are processed.
- Monitor Folders: Start monitoring the specified Windows folders and process new image files when they appear. Once started, the process can be controlled in the Task Manager.
- Loop On Set Locations: When processing an image set, run the "Loop On" macro on all set locations but for all channels together. The View.ImageSetViewCommands.Options command can be used to navigate from one channel to another by only assigning the location in the channel dimension.
With View.ImageSetViewCommands.Options(NewMacro9) .ViewLocation.Add(mcImageSetDimensions.mcisdChannel, 0) .Run(window1) End With