G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.1.5

Reference

Table of Contents  ▸  List of Commands  ▸  Flow Control  ▸  foreach◀  for    |    if  ▶

foreach

Built-in command

No arguments

Description:

Start a foreach...[onfail]...done block, that iterates over all images in the selection, with a separate local environment for each one.

Example of use:

$ gmic sample colorful,earth,duck,dog foreach[^2] +blur 10 sub normalize 0,255 done

Command: sample colorful,earth,duck,dog foreach[^2] +blur 10 sub normalize 0,255 done
Command: sample colorful,earth,duck,dog foreach[^2] +blur 10 sub normalize 0,255 done
Command: sample colorful,earth,duck,dog foreach[^2] +blur 10 sub normalize 0,255 done
Command: sample colorful,earth,duck,dog foreach[^2] +blur 10 sub normalize 0,255 done
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.