Table of Contents ▸ List of Commands ▸ Input / Output ▸ serialize | ◀ select | shape_circle ▶ |
serialize | Built-in command |
Arguments:
- _datatype,_is_compressed={ 0:No | 1:Yes },_store_names={ 0:No | 1:Yes }
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:
image.jpg +serialize uint8 +unserialize[-1]