diff --git a/Tools/tga_incrust.c b/Tools/tga_incrust.c index b7b9782..ea19761 100644 --- a/Tools/tga_incrust.c +++ b/Tools/tga_incrust.c @@ -42,7 +42,7 @@ fprintf(stderr, "* TGA incrustator v 0.1.3 [%s] %s \n", TGA_OUTILS_VERSION, TGA_OUTILS_COPYLEFT); fprintf(stderr, " compiled %s at %s\n", __DATE__, __TIME__); -fprintf(stderr, "usage:\n\ttga_incrust orig insert mode out\n"); +fprintf(stderr, "usage:\n\ttga_incrust MODE \n"); if (flag) { Image_print_version(0); diff --git a/Tools/tga_to_text.c b/Tools/tga_to_text.c index 7fb3935..e26e285 100644 --- a/Tools/tga_to_text.c +++ b/Tools/tga_to_text.c @@ -11,21 +11,27 @@ #include "tga_outils.h" /*::------------------------------------------------------------------::*/ - +/* + * Print a textual form of a picture, so you can read it + * with a software who can't read TGA files. + * Exemples: Fortran or Basic code, R, the statistic + * software. And maybe you cant write a shell script + * to convert from TGA to PNM :) + */ int printf_this_picture(Image_Desc *pic, int flag) { int x, y, r, g, b; if (flag) { - /* needed for easy import in R */ + /* needed for easy import in Rstats */ printf(" X Y R G B\n"); } for (y=0; yheight; y++) { for (x=0; xwidth; x++) { - printf("%5d %5d ", x, y); + printf("%5d %5d ", x, y); Image_getRGB(pic, x, y, &r, &g, &b); - printf("%4d %4d %4d\n", r, g, b); + printf("%3d %3d %3d\n", r, g, b); } }