adding a "2 gray" function

This commit is contained in:
2019-08-24 13:06:51 +02:00
parent 8f65f414dc
commit d1e9999e1c
3 changed files with 72 additions and 0 deletions

14
lib/t.c
View File

@@ -30,6 +30,16 @@ for (y=0; y<img->height; y++) {
}
return -1;
}
/* ---------------------------------------------------------------- */
int essai_2gray(FloatImg *picz, char *outname)
{
return -1;
}
/* ---------------------------------------------------------------- */
#define W 4000
@@ -56,6 +66,10 @@ foo = fimg_create(&result, W, H, 3);
foo = fimg_add(&dessin, &noise, &result);
fimg_save_as_pnm(&result, "r_add.pnm", 0);
essai_2gray(&result, "gray.pnm");
foo = fimg_sub(&dessin, &noise, &result);
fimg_save_as_pnm(&result, "r_sub.pnm", 0);
foo = fimg_mul(&dessin, &noise, &result);