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_npr_permutations◀  rep_permutation_list2index    |    rep_npr_permutation_index2list  ▶

rep_npr_permutations

Arguments:

  • number_of_items,selected_items_count,(_axis={x|y|z})    or
  • selected_items_count,number_of_items,(_axis={x|y|z})

Description:

Generates partial combination. P(n,k)

Note - Code is taken from Alistairisrael pseudo-code - https://alistairisrael.wordpress.com/2009/09/22/simple-efficient-pnk-algorithm/
Note #2 - If _axis is not x,y,or z, then returns quantity only.

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.