gmic proper, it is easy to fall into the habit of thinking that
-name labels images; I find myself lapsing into that manner of thinking myself, but to make a habit of such lapses is to miss out on a good deal of the versatility of
-name. In fact,
-name labels selections. Now, selections can entail just one image and many uses of
-name entail single image selections, but interesting trickery awaits those who recall this subtle distinction that labeling selections is the game of a name:
-input 120,240,18,3 \
-split. z \
-name[0--1:3] Blue \
-name[1--1:3] White \
-name[2--1:3] Red \
-fill_color[Red] 357,0.9,0.45 \
-fill_color[Blue] 230,0.9,0.35 \
-fill_color[White] 90,0.7,0.95 \
-append x \
A named selection groups images into a particular class, and I may select that class without worrying where on the image list the members are, saving me tedious index arithmetic. Perhaps I wish to perform a few actions on just the white images.
-local[White] -noise 0.2,2 -bandpass 0.008,0.02 -normalize 0,255 -endlocal
, inserted just before
blottifies just the white panels.
Have fun with this.