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_sort_colors◀  rep_two_dimension_set_indices    |    rep_sort_images_by_images_name_order  ▶

rep_sort_colors

Arguments:

  • _channel_a,_channel_b,_order={ 0=decreasing | 1=increasing },_copy_back={ -1=skip_unique_and_false | 0=false | true }

Description:

Sort pixels by their color throughout all channels.

Default values:

_channel_a=0,_channel_b=100%,_order=1,_copy_back=1

Example of use:

sp , rep_sort_colors 0,100%,1

Command: sp , rep_sort_colors 0,100%,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.