serialize | Built-in command |
Arguments:
- _datatype,_is_compressed={ 0 | 1 },_store_names={ 0 | 1 }
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:
Command:
image.jpg +serialize uint8 +unserialize[-1]
Command:
image.jpg +serialize uint8 +unserialize[-1]
Command:
image.jpg +serialize uint8 +unserialize[-1]
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.