libtthimage/Tools
tTh a4e3d073f5 another big clean 2022-09-21 00:06:11 +02:00
..
Makefile + alpha tool 2022-06-28 22:28:05 +02:00
README.md garbage collecting again 2022-07-07 12:52:00 +02:00
fonctions.c garbage collecting again 2022-07-07 12:52:00 +02:00
genplot2.c small tweaks 2022-09-13 00:11:53 +02:00
tga_alpha.c + alpha tool 2022-06-28 22:28:05 +02:00
tga_applymap.c garbage collecting again 2022-07-07 12:52:00 +02:00
tga_cadre.c maintenant, les choses importantes... 2022-06-27 23:05:42 +02:00
tga_combine.c garbage collecting again 2022-07-07 12:52:00 +02:00
tga_dither.c more clean... 2022-08-22 17:53:30 +02:00
tga_effects.c minor tuning 2022-08-23 12:10:16 +02:00
tga_equalize.c some small twiks 2022-06-30 20:33:31 +02:00
tga_export.c garbage collecting again 2022-07-07 12:52:00 +02:00
tga_filtres.c garbage collecting again 2022-07-07 12:52:00 +02:00
tga_incrust.c garbage collecting again 2022-07-07 12:52:00 +02:00
tga_info.c 2.5 tools added... 2022-06-28 10:46:14 +02:00
tga_makehf15.c six more tools added... 2022-06-27 23:39:52 +02:00
tga_mires.c six more tools added... 2022-06-27 23:39:52 +02:00
tga_outils.h minor tuning 2022-08-23 12:10:16 +02:00
tga_pattern.c 2.5 tools added... 2022-06-28 10:46:14 +02:00
tga_remap.c six more tools added... 2022-06-27 23:39:52 +02:00
tga_television.c cosmetic 2022-06-30 12:49:59 +02:00
tga_tools.c another big clean 2022-09-21 00:06:11 +02:00

README.md

Tools

Pour utiliser toutes ces fonctions, il y a une collection d'utilitaires spécialisés. Leur interface en CLI est assez rudimentaire, mais la plupart savent donner quelques indices avec la commande list. Exemple:

tth@konrad:~/Devel/libtthimage$ tga_filtres list
*** tga_filtres v 0.0.17 [0.59] (dwtfywl) TontonTh 2018

Usage:
        tga_filtres <src.tga> FILTR <dst.tga> [p1] ... [pn]
-+- This is the `tthimage' library v0.4.50 (dwtfywl 2022) tTh
  commande  | type arg |  explication
------------+----------+------------------------------------
 liss2x2    |          |  lissage 2x2
 hipass     |          |
 lopass     |          |
 prewitt    | i        |  rotation [0..8]
 random     | ii       |  try it...

La colonne du milieu indique le type des paramètres :

  • i pour un nombre entier
  • d pour un flottant en double précision
  • s pour une chaine, ex: un nom de fichier
  • f pour un flag : 0, F, 1, T

tga_alpha

Manipulation du canal alpha (la transparence), lequel canal est globalement mal géré par l'ensemble de libtthimage.

tga_applymap

La gestion de la ligne de commande est désastreuse. À REFAIRE

tga_cadre

Pas mal de façons de mettre un cadre sur l'image. Niveau de kitchitude assez élevé. Paramètres mal documentés.

tga_combine

tga_dither

tga_export

Attendu avec impatience, il aura le support complet des PNG.

tga_effects

tga_equalize

tga_filtres

tga_incrust

tga_makehf15

tga_mires

La génération de diverses image de test ou de calibration.

tga_pattern

tga_remap

tga_television

tga_tools

Celui ci est très utile pour la recherche de problèmes ou l'automatisation de certaines tâches. Exemple :

tth@konrad:~/Devel/libtthimage$ tga_tools getdimweb mire.tga 
width=512 height=512
tth@konrad:~/Devel/libtthimage$ 

genplot2