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_permutations◀  rep_three_coupled_oscillators    |    rep_permutation_index2list  ▶

rep_permutations

Arguments:

  • init_num,(_axis={x,y,z})

Description:

Return all the permutations of set of numbers as a image.

 
Finding the next permutation has been adapted from this link -> https://www.techiedelight.com/find-permutations-string-cpp-java-iterative/
Finding the permutation at point index within this code is of the author.
Note : If _axis is not x,y,or z, then returns quantity only.
Author : Reptorian.

Default values:

_axis=x

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.