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

# A Full-Featured Open-Source Framework for Image Processing

## Latest stable version: 3.1.5

Reference

 Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  shift ◀  seamcarve    |    shrink_x  ▶

# shift

Built-in command

## Arguments:

• vx[%],_vy[%],_vz[%],_vc[%],_boundary_conditions,_interpolation={ 0=nearest_neighbor | 1=linear }

## Description:

Shift selected images by specified displacement vector.

Displacement vector can be non-integer in which case linear interpolation should be chosen.
boundary_conditions can be { 0=dirichlet | 1=neumann | 2=periodic | 3=mirror }.

## Default values:

boundary_conditions=0 and interpolation=0.

## Example of use:

\$ gmic image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2

Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing