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_threshold◀  rep_majority    |    rep_perspective_streak  ▶

rep_majority_threshold

Arguments:

  • kernel_size>=2,0<=tolerance[%]<=100,_booldir={ 0=less_than | 1=greater_than },_alpha,_mode={ 0=soft | 1=hard },_colorspace

Description:

Calculate whether to erode or dilate based on specified threshold.

(equivalent to shortcut command rep_major_t).


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

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:

_booldir=0,_mode=1,_alpha,_colourspace,

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.