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  ▸  Geometry Manipulation  ▸  split◀  sort    |    split_tiles  ▶

split

Built-in command

Arguments:

Description:

Split selected images along specified axes, or regarding to a sequence of scalar values

(optionally along specified axes too).

(equivalent to shortcut command s).

split_mode can be { 0:split according to constant values | >0:split in N parts | <0:split in parts of size -N }.

Default values:

split_mode=-1.

Examples of use:

• Example #1

image.jpg split c

Command: image.jpg split c
Command: image.jpg split c
Command: image.jpg split c

• Example #2

image.jpg split y,3

Command: image.jpg split y,3
Command: image.jpg split y,3
Command: image.jpg split y,3

• Example #3

image.jpg split x,-128

Command: image.jpg split x,-128
Command: image.jpg split x,-128
Command: image.jpg split x,-128
Command: image.jpg split x,-128
Command: image.jpg split x,-128

• Example #4

1,20,1,1,"1,2,3,4" +split -,2,3 append[1--1] y

Command: 1,20,1,1,"1,2,3,4" +split -,2,3 append[1--1] y
Command: 1,20,1,1,"1,2,3,4" +split -,2,3 append[1--1] y

• Example #5

(1,2,2,3,3,3,4,4,4,4) +split x,0 append[1--1] y

Command: (1,2,2,3,3,3,4,4,4,4) +split x,0 append[1--1] y
Command: (1,2,2,3,3,3,4,4,4,4) +split x,0 append[1--1] y
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.