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.4

Reference

 Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  warp ◀  upscale_smart    |    warp_patch  ▶

# warp

Built-in command

## Arguments:

• [warping_field],_mode,_interpolation,_boundary_conditions,_nb_frames>0

## Description:

Warp selected images with specified displacement field.

mode can be { 0=backward-absolute | 1=backward-relative | 2=forward-absolute | 3=forward-relative }.
interpolation can be { 0=nearest-neighbor | 1=linear | 2=cubic }.
boundary_conditions can be { 0=dirichlet | 1=neumann | 2=periodic | 3=mirror }.

## Default values:

mode=0, interpolation=1, boundary_conditions=0 and nb_frames=1.

This command has a .

## Example of use:

\$ gmic image.jpg 100%,100%,1,2,'X=x/w-0.5;Y=y/h-0.5;R=(X*X+Y*Y)^0.5;A=atan2(Y,X);130*R*if(c==0,cos(4*A),sin(8*A))' warp[-2] [-1],1,1,0 quiver[-1] [-1],10,1,1,1,100

Command: image.jpg 100%,100%,1,2,'X=x/w-0.5;Y=y/h-0.5;R=(X*X+Y*Y)^0.5;A=atan2(Y,X);130*R*if(c==0,cos(4*A),sin(8*A))' warp[-2] [-1],1,1,0 quiver[-1] [-1],10,1,1,1,100
Command: image.jpg 100%,100%,1,2,'X=x/w-0.5;Y=y/h-0.5;R=(X*X+Y*Y)^0.5;A=atan2(Y,X);130*R*if(c==0,cos(4*A),sin(8*A))' warp[-2] [-1],1,1,0 quiver[-1] [-1],10,1,1,1,100
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.