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: 3.5.5        Current pre-release: 3.6.0 (2025/08/04)

Reference
Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  extract◀  expand    |    extract_region  ▶

extract

Arguments:

  • "condition",_output_type={ 0:XYZC-coords | 1:XYZ-coords | 2:Scalar-values | 3:Vector-values | 4:XYZC-coords + scalar value | 5:XYZ-coords + vector-values }

Description:

Extract a list of coordinates or values from selected image, where

specified mathematical condition holds.
For N coordinates matching, result is a 1xNx1x4 image.

Default values:

output_type=0.

Example of use:

sp lena +extract "norm(I)>128",3

Command: sp lena +extract "norm(I)>128",3
Command: sp lena +extract "norm(I)>128",3
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.