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.4.3        Current pre-release: 3.5.0 (2024/12/18)

Reference

Table of Contents  ▸  List of Commands  ▸  3D Meshes  ▸  colorize3d◀  colorcube3d    |    cone3d  ▶

colorize3d

Arguments:

Description:

Colorize primitives of selected 3D objects, according to a specified function.
color_function returns a G,GA,RGB or RGBA vector that can depend on variables x,y and z, which are defined as the barycenter coordinates for each primitive.
passed_images_for_color_function can be specified as a selection (e.g. [0,2]) of images that will be inserted at the end of the image list while modifying 3D objects, so that the color_function can have access to their content.

Default values:

color_function=[x,y,z] and passed_images_for_color_function=.

Example of use:

torus3d 100,40,640,100 c3d n3d mul3d 256 +3d 128,128,128 sample colorful,257 colorize3d[0] "I(#-1,x,y,0)",[1]

Command: torus3d 100,40,640,100 c3d n3d mul3d 256 +3d 128,128,128 sample colorful,257 colorize3d[0] "I(#-1,x,y,0)",[1]
Command: torus3d 100,40,640,100 c3d n3d mul3d 256 +3d 128,128,128 sample colorful,257 colorize3d[0] "I(#-1,x,y,0)",[1]
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.