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_ncr_combination_list2index◀  rep_ncr_combination_index2list    |    rep_r_combinations  ▶

rep_ncr_combination_list2index

Arguments:

  • number_items,position_a...position_n

Description:

Return the lexicographic index in which this ncr combination is found within a list of all possible ncr combination. Code is based off the author's code here - https://stackoverflow.com/questions/14455634/find-the-index-of-a-given-combination-of-natural-numbers-among-those-returned

 
position(s) variable(s) must not have repeating number. Order does not matter.
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.