|
|
|
@ -45,8 +45,13 @@ if (0 == globbuf.gl_pathc) {
@@ -45,8 +45,13 @@ if (0 == globbuf.gl_pathc) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foo = fimg_fileinfos(globbuf.gl_pathv[0], iarray); |
|
|
|
|
if (FIMG_TYPE_RGB != iarray[2]) { |
|
|
|
|
fprintf(stderr, "can work only on RGB fimg picture, was %d\n", |
|
|
|
|
iarray[2]); |
|
|
|
|
exit(1); |
|
|
|
|
} |
|
|
|
|
w = iarray[0], h = iarray[1]; |
|
|
|
|
fprintf(stderr, "\tfirst image size : %dx%d\n", w, h); |
|
|
|
|
fprintf(stderr, "first image size : %dx%d\n", w, h); |
|
|
|
|
|
|
|
|
|
fimg_create(&A, w, h, 3); pFirst = &A; |
|
|
|
|
fimg_create(&B, w, h, 3); pSecond = &B; |
|
|
|
@ -78,7 +83,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
@@ -78,7 +83,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
|
|
|
|
fimg_interpolate(pSecond, pFirst, &Out, coef); |
|
|
|
|
|
|
|
|
|
/* here we can insert the output filter */ |
|
|
|
|
kill_a_few_lines(&Out, 3.14159, 500); |
|
|
|
|
kill_a_few_lines(&Out, 150.5, 5+(rand()%20)); |
|
|
|
|
|
|
|
|
|
sprintf(line, "%s/%05d.png", outdir, ipng); |
|
|
|
|
foo = fimg_save_as_png(&Out, line, 0); |
|
|
|
@ -127,8 +132,9 @@ fprintf(stderr, "*** %s : compiled by tTh, %s %s\n", __FILE__,
@@ -127,8 +132,9 @@ fprintf(stderr, "*** %s : compiled by tTh, %s %s\n", __FILE__,
|
|
|
|
|
__DATE__, __TIME__); |
|
|
|
|
fimg_print_version(2); |
|
|
|
|
|
|
|
|
|
while ((opt = getopt(argc, argv, "v")) != -1) { |
|
|
|
|
while ((opt = getopt(argc, argv, "hv")) != -1) { |
|
|
|
|
switch(opt) { |
|
|
|
|
case 'h': help(); break; |
|
|
|
|
case 'v': verbosity++; break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|