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.3.5        Current pre-release: 3.3.6 (2024/05/02)

Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  huffman_tree◀  compress_huffman    |    compress_rle  ▶

huffman_tree

No arguments

Description:

Generate Huffman coding tree from the statistics of all selected images.

Huffman tree is returned as a 1xN image inserted at the end of the image list, representing the N vector-valued leafs/nodes of the tree, encoded as [ value,parent,child0,child1 ].
Last row of the returned image corresponds to the tree root.
Selected images must contain only positive integer values.
Return maximal value of the input data in the status.

See also:

compress_huffman, decompress_huffman.
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.