G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.5.2        Current pre-release: 3.5.3 (2025/02/01)

Reference

Table of Contents  ▸  List of Commands  ▸  Mathematical Operators  ▸  abscut◀  abs    |    acos  ▶

abscut

Built-in command

Arguments:

Description:

Cut the absolute values of pixel values in selected images, with specified range.

For each value i of the selected images, compute cut(abs(i) + offset,min,max)*sign(i).
Thus, it only clamp/shift the absolute value of each pixel value while keeping its sign unchanged.

Default values:

max=inf and offset=0.

Example of use:

300,1,1,1,'cos(20*x/w)' +abscut 0,0.5 append c display_graph 400,300

Command: 300,1,1,1,'cos(20*x/w)' +abscut 0,0.5 append c display_graph 400,300
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.