diff --git a/2008-displacement/main.c b/2008-displacement/main.c index c04ebf1..0a0b0f8 100644 --- a/2008-displacement/main.c +++ b/2008-displacement/main.c @@ -561,9 +561,10 @@ static void usage(char *argv[]) { fprintf(stderr, "Usage: %s [ARGS...]\n", argv[0]); fprintf(stderr, "Allowed modes:\n"); - fprintf(stderr, " -1 raster FS displacement study on blends of src1 and src2\n"); - fprintf(stderr, " -2 quick (a,b,c,d) ED kernel analysis on src\n"); - fprintf(stderr, " -3 exhaustive (a,b,c,d) ED kernel analysis on src\n"); + fprintf(stderr, " -1 raster FS displacement study on src\n"); + fprintf(stderr, " -2 raster FS displacement study on blends of src1 and src2\n"); + fprintf(stderr, " -3 quick (a,b,c,d) ED kernel analysis on src\n"); + fprintf(stderr, " -4 exhaustive (a,b,c,d) ED kernel analysis on src\n"); } int main(int argc, char *argv[]) @@ -595,6 +596,15 @@ int main(int argc, char *argv[]) switch(mode) { case 1: + { + float *dest = ed(src, false, 7, 0, 1, 3, 5, 0, 0, 0, 0, 0, 0, 0); + study(src, dest, 1.2, 0.001); + free(dest); + free(src); + } + break; + + case 2: { float *src2, *dest, *tmp; @@ -617,8 +627,8 @@ int main(int argc, char *argv[]) } break; - case 2: case 3: + case 4: { float *dest, *tmp, *tmp2; int a, b, c, d, e; @@ -656,7 +666,7 @@ int main(int argc, char *argv[]) printf("K = %d,%d,%d,%d ", a2, c2, d2, e2); dest = ed(src, false, a2, 0, b2, c2, d2, e2, 0, 0, 0, 0, 0, 0); - if(mode == 2) + if(mode == 3) { tmp = gauss(src, mat0); tmp2 = gauss(dest, mat0);