Reference

Table of Contents  ▸  List of Commands  ▸  Filtering  ▸  convolve◀  compose_freq    |    convolve_fft  ▶

convolve

Built-in command

Arguments:

Description:

Convolve selected images by specified mask.

boundary_conditions can be { 0=dirichlet | 1=neumann | 2=periodic | 3=mirror }.
channel_mode can be { 0=sum input channels | 1=one-for-one | 2=expand }.

Default values:

boundary_conditions=1, is_normalized=0, channel_mode=1, xcenter=ycenter=zcenter=-1 (-1=centered), xstart=ystart=zstart=0, xend=yend=zend=-1 (-1=max coordinates), xstride=ystride=zstride=1 and xdilation=ydilation=zdilation=1.

This command has a tutorial page.

Examples of use:

• Example #1

$ gmic image.jpg (0,1,0;1,-4,1;0,1,0) convolve[-2] [-1] keep[-2]
Command: image.jpg (0,1,0;1,-4,1;0,1,0) convolve[-2] [-1] keep[-2]

• Example #2

$ gmic image.jpg (0,1,0) resize[-1] 130,1,1,1,3 +convolve[0] [1]
Command: image.jpg (0,1,0) resize[-1] 130,1,1,1,3 +convolve[0] [1]
Command: image.jpg (0,1,0) resize[-1] 130,1,1,1,3 +convolve[0] [1]
Command: image.jpg (0,1,0) resize[-1] 130,1,1,1,3 +convolve[0] [1]