a new sfx func is born

This commit is contained in:
tth
2021-03-20 19:47:42 +01:00
parent 0aba64181c
commit 64c1383283
6 changed files with 158 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ float global_fvalue;
/* --------------------------------------------------------------------- */
enum nCmd { Equalize=1, Rotate, Sfx0, F3x3, MIRE, Wfits, Wpng, Wtiff,
Histo, Hsv, Classif, Ctr2x2, Qsortrgb,
Displace, ReadPNG, Plasmas };
Displace, ReadPNG, Plasmas, Hilight };
typedef struct {
char *name;
int Cmd;
@@ -44,6 +44,7 @@ Command commands[] = {
{ "displace", Displace },
{ "readpng", ReadPNG },
{ "plasma", Plasmas },
{ "hilight", Hilight },
{ NULL, 0 }
} ;
@@ -194,6 +195,9 @@ switch(opt) {
fprintf(stderr, "rotate not implemented (%d)\n", rand());
foo = 0;
break;
case Hilight:
foo = essai_highlights(filename, outfile, 0, global_fvalue);
break;
default:
fprintf(stderr, "'%s' is a bad command\n", command);
exit(1);