meta data for this page
Batch Processing with Flowcharts
A flowchart is a collection of the geometrically shaped modules at the beginning of the Cupboard. Together, they execute a Star (an executable job) several times, on different images or in different folders.
How a simple flowchart works
Every flowchart begins with a start module and ends with an end module, with at least one exec module in between. Set their arguments as for any module: left-click inside them to open the argument dialog.
- start sets the starting folder, and passes its name to the next module, ls.
- ls looks in that folder for files that match its filter, here
*.tif. It passes the folder name and each matching file name, one at a time, to the next module. If 5 names match, exec receives a folder and file name 5 times. - exec has a Star attached to it. The Star contains dynamic variables, which exec fills in from the folder and file names, as set in its arguments. Here it gives the file name to Show as a title, and the folder and file name to ReadImage.
Learn more
| Page | What it covers |
|---|---|
| Operation of Flowchart Modules | How the modules pass messages, and how ls and rpt loops work |
| Flowchart Modules | Reference for start, cd, ls, rpt, exec, mkdir, pause and end |
| Dynamic Variables | Putting variables into the attached job |
| Arguments for "exec" | The $D$, $F$, :: and $I$ symbols |
| Argument Modifications | Parent folders, substitutions, removal and iteration |
| Compound Arguments | Nested loops over folders, and using ReadStack and WriteStack |