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_majority◀  rep_madjik_newton_fractal    |    rep_majority_threshold  ▶

rep_majority

Arguments:

  • kernel_size>1,_mode={ 0=soft_regular | 1=soft_average_channels | 2=hard_regular | 3=hard_average_channels },_colourspace,_alpha

Description:

Calculate whether to erode or dilate pixels using average.

(equivalent to shortcut command rep_major_t).


Custom Colour Space values can be specified with negative number for $3

Primary Source: https://web.archive.org/web/20080214191501/http://interstices.info/display.jsp?id=c_27035
Secondary Source: https://forums.getpaint.net/topic/3978-majority-color-effect-ymd100726/

Default values:

_mode=0,_colourspace=0,_alpha=0

Author: Reptorian.
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.