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.4.3        Current pre-release: 3.4.4 (2024/11/20)

Reference

Table of Contents  ▸  List of Commands  ▸  Warpings  ▸  warp◀  twirl    |    warp_patch  ▶

warp

Built-in command

Arguments:

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 tutorial page.

Example of use:

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*(!c?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*(!c?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*(!c?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.