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

Reference

Table of Contents  ▸  List of Commands  ▸  Input / Output  ▸  serialize◀  select    |    shape_circle  ▶

serialize

Built-in command

Arguments:

Description:

Serialize selected list of images into a single image, optionally in a compressed form.

datatype can be { auto | uint8 | int8 | uint16 | int16 | uint32 | int32 | uint64 | int64 | float32 | float64 }.
Specify datatype if all selected images have a range of values constrained to a particular datatype,
in order to minimize the memory footprint.
The resulting image has only integers values in [0,255] and can then be saved as a raw image of
unsigned chars (doing so will output a valid .cimg[z] or .gmz file).
If store_names is set to 1, serialization uses the .gmz format to store data in memory
(otherwise the .cimg[z] format).

Default values:

datatype=auto, is_compressed=1 and store_names=1.

Example of use:

$ gmic image.jpg +serialize uint8 +unserialize[-1]

Command: image.jpg +serialize uint8 +unserialize[-1]
Command: image.jpg +serialize uint8 +unserialize[-1]
Command: image.jpg +serialize uint8 +unserialize[-1]
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.