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.5.3 (2025/03/07)

Reference

Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  resize_pow2◀  resize_mn    |    rotate  ▶

resize_pow2

Arguments:

Description:

Resize selected images so that each dimension is a power of 2.

interpolation can be { -1:None (memory content) | 0:None | 1:Nearest | 2:Average | 3:Linear | 4:Grid | 5:Bicubic | 6:Lanczos }.
boundary_conditions has different meanings, according to the chosen interpolation mode :
. When 'interpolation=={ -1 | 1 | 2 | 4 }', boundary_conditions is meaningless.
. When interpolation==0, boundary_conditions can be { 0:Dirichlet | 1:Neumann | 2:Periodic | 3:Mirror }.
. When 'interpolation=={ 3 | 5 | 6 }', boundary_conditions can be { 0:None | 1:Neumann }.
ax,ay,az,ac set the centering along each axis when interpolation=0
(set to 0 by default, must be defined in range [0,1]).

Default values:

interpolation=0, boundary_conditions=0 and ax=ay=az=ac=0.

Example of use:

image.jpg +resize_pow2[-1] 0

Command: image.jpg +resize_pow2[-1] 0
Command: image.jpg +resize_pow2[-1] 0
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.

Loading...