|
|
|
@ -22,7 +22,7 @@ typedef struct { |
|
|
|
|
|
|
|
|
|
enum fxid { Fx_cos01=5, Fx_cos010, Fx_pow2, Fx_sqrt, Fx_gray0, Fx_halfsz0, |
|
|
|
|
Fx_rot90, Fx_cmixa, Fx_desat, Fx_ctr2x2, Fx_norm, |
|
|
|
|
Fx_classtrial, Fx_mirror, |
|
|
|
|
Fx_classtrial, Fx_mirror, Fx_shift0, |
|
|
|
|
Fx_xper, Fx_binarize, Fx_trinarize,Fx_hilight_R }; |
|
|
|
|
|
|
|
|
|
Fx fx_list[] = { |
|
|
|
@ -38,6 +38,7 @@ Fx fx_list[] = { |
|
|
|
|
{ "desat", Fx_desat, 0, 1 }, |
|
|
|
|
{ "ctr2x2", Fx_ctr2x2, 0, 1 }, |
|
|
|
|
{ "mirror", Fx_mirror, 0, 1 }, |
|
|
|
|
{ "shift0", Fx_shift0, 0, 1 }, |
|
|
|
|
// { "norm", Fx_norm, 0, 1 },
|
|
|
|
|
{ "classtrial", Fx_classtrial, 0, 1 }, |
|
|
|
|
{ "binarize", Fx_binarize, 0, 1 }, |
|
|
|
@ -208,6 +209,10 @@ switch (action) { |
|
|
|
|
case Fx_mirror: |
|
|
|
|
foo = fimg_mirror(&src, &dest, 0); |
|
|
|
|
break; |
|
|
|
|
case Fx_shift0: |
|
|
|
|
fprintf(stderr, "Krkrk %d\n", action); |
|
|
|
|
foo = fimg_auto_shift_to_zero(&src, &dest); |
|
|
|
|
break; |
|
|
|
|
case Fx_ctr2x2: |
|
|
|
|
foo = fimg_contour_2x2(&src, &dest, 0); |
|
|
|
|
break; |
|
|
|
|