G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.0.4 (2026/08/19)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  rep_uniq_args◀  rep_concat_imgs_vals_uniq    |    rep_sug_args  ▶

rep_uniq_args

Arguments:

  • output_mode={ 0=status | 1=string_table_images | 2=str2imgs },randomize_str_pos={ 0=False | 1=True },sep,[arg0,arg1,...]

Description:

Deduplicate input strings. sep parameter is optional, and it defines how to separate a string.

 
output_mode=0 returns the unique strings as a comma-separated list in
the status variable.
 
output_mode=1 outputs a string-table representation and returns the
length of the longest string in status variable.
 
output_mode=2 output image representation per strings
 
-- Details for output_mode=1 --
1) First image: concatenation of all unique strings.
2) Second image: for each string, [offset,length]
   - channel 0: position of the string in the first image
   - channel 1: length of the string.
3) Status is set to the length of the longest string.
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.