Here is a piece of the pink documentation. I am generating it for my own usage. The most important command is pink… For many pink programs the wrapper fits!
e.g.
pink. asf,5
pink cares for 2 or three dim data. For parameters call the pink exec without parameter
$ pink.asf
usage: pink.asf in.pgm [rayonmin] rayonmax out.pgm
**** PINK-library operators:
_xpink:
pink_cmd,p1, ... ,pn
Packs the list of parameters to a string with spaces,
generates the pink input image in tmp and executes the pink command and reads the result image
If $GMIC_PINK_VERBOSE is true, the command and sysout is printed
If $GMIC_PINK_NO_RM is true, the temporary files are not removed
_xpinks:
pink_cmd,parameter_string(with spaces)
Splits c channel if necessary and executes "_xpink pink_cmd,parameter_string" to each image
output_pink3d:
filename,_type
Save selected images as _type-coded (P5,P8,P9) PPM files (PINK extension for 3d volumetric images).
pinkxipo:
[b1],..[bn],name,pn+2, .. ,pm
Pink wrapper pinkxipo[a] [b1,..bn,]name(pn+1)[,pn+2, .. ,pm] (requires the PINK library to be
installed).
Executables with 1, 2-n input image files (xi), pos. parameters (p), output file (o)
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/)
prepares input, calls external "name inputa [inputb1 ... inputbn] [pn+2 ... pm] output" and
reads output (/tmp)
Add. images are located before the pink executable name. If images are replaced by a parameter,
e.g. null, than it has to be located after the executable name!
pink:
Pink wrapper name,p1,...,pn (requires the PINK library to be installed).
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/)
prepares input, calls external "name input p1...pn output" and reads output (/tmp)
pink_grayskel:
_connectivity={ 4 }, _lambda=0
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/grayskel_8c.html)
Grayscale homotopic skeleton (requires the PINK library to be installed).
Default values: 'connectivity=4' and 'lambda=0'.
pink_heightmaxima:
_connectivity={ 4 | 8 | 6 | 26 },_height=1
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/heightmaxima_8c.html)
Heightmaxima filtering (requires the PINK library to be installed).
Default values: 'connectivity=4' and 'height=1'.
pink_heightminima:
_connectivity={ 4 | 8 | 6 | 26 },_height=1
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/heightminima_8c.html)
Heightminima filtering (requires the PINK library to be installed).
Default values: 'connectivity=4' and 'height=1'.
pink_htkern:
_connectivity={ 4 | 8 | 6 | 26 }, _type={""|u}
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/htkern_8c.html)
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/htkernu_8c.html)
Grayscale ultimate homotopic thinning/thickening without condition (requires the PINK library
to be installed).
Default values: 'connectivity=4' and 'type=""'.
pink_lvkern:
_connectivity={ 4 | 8 | 6 | 26 }, _type={""|u}
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/lvkern_8c.html)
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/lvkernu_8c.html)
Grayscale ultimate leveling thinning/thickening without condition (requires the PINK library to
be installed).
Default values: 'connectivity=4' and 'type=""'.
pink_reg_minima:
_connectivity={ 4 | 8 | 6 | 26 }
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/minima_8c.html)
Regional minima (requires the PINK library to be installed).
Default values: 'connectivity=4'.
pink_skelcurv:
_prio={0|1|2|3|4|8|6|26},_connectivity={ 4 | 8 | 6 | 26 },_inhibit={""}
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/skelcurv_8c.html)
Curvilinear binary skeleton guided by a priority function or image (requires the PINK library
to be installed).
Default values: 'prio=0', 'connectivity=4' and 'inhibit=""'.
pink_skelend:
_connectivity={ 4 | 8 | 6 | 26 },_n=0
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/skelend_8c.html)
Homotopic skeleton of a 2d or 3d binary image with dynamic detection of end points (requires
the PINK library to be installed).
Default values: 'connectivity=4' and 'n=0'.
pink_skeleton:
_prio={0|1|2|3|4|8|6|26},_connectivity={ 4 | 8 | 6 | 26 },_inhibit={""}
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/skeleton_8c.html)
Ultimate binary skeleton guided by a priority image (requires the PINK library to be installed).
Default values: 'prio=0', 'connectivity=4' and 'inhibit=""'.
pink_skelpar:
_algorithm={0...29},_nsteps=_1,_inhibit=""
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/skelpar_8c.html)
Parallel binary skeleton (requires the PINK library to be installed).
Default values: 'algorithm=4', 'nsteps=-1' and 'inhibit=""'.
pink_wshed:
_connectivity={ 4 | 8 | 6 | 26 },_inverse={ 0 | 1 },_height=0
(https://perso.esiee.fr/~talboth/ISBS/Morpho/pink/doc/wshedtopo_8c.html)
Watershed (requires the PINK library to be installed).
Default values: 'connectivity=4', 'inverse=0' and 'height=0'.
output_pinklist:
_filename (def. $TMPDIR/pink.list)
Write a pink list file from (2,n) or (3,n) coordinate list image
input_pinklist:
file_name, _mode
Read a pink list file (type G from pink.delaunay) at file_name and prepare
_mode == 0 a 3d object or
_mode != 0 the vertice, hull, edge lists and the adjacency matrix
Other list file types are still not implemented
pink_delaunay:
_mode
Prepare the delaunay triangulation from a list of coordimates (vertices)
using the external program pink.delaunay
_mode == 0 a 3d object or
_mode != 0 the vertice, hull, edge lists and the adjacency matrix