filters now have a name
This commit is contained in:
@@ -53,7 +53,7 @@ if (foo) {
|
||||
fprintf(stderr, "oups %d in get minmax\n", foo);
|
||||
return foo;
|
||||
}
|
||||
if (verbosity>1) fimg_print_minmax(mm, "input pic");
|
||||
if (verbosity>1) fimg_print_minmax(mm, " input pic ");
|
||||
|
||||
/*
|
||||
* compute the 8 center points
|
||||
@@ -86,7 +86,7 @@ for (idx=0; idx<sz; idx++) {
|
||||
|
||||
r = pimg->R[idx]; g = pimg->G[idx]; b = pimg->B[idx];
|
||||
for (n8=0; n8<8; n8++) {
|
||||
dp = sqrt(X(r,ptc[n8].x) + X(g,ptc[n8].y) + X(b,ptc[n8].z) );
|
||||
dp = sqrt(X(r,ptc[n8].x)+X(g,ptc[n8].y)+X(b,ptc[n8].z));
|
||||
if (dp < trig) {
|
||||
pimg->R[idx] = ptc[n8].x;
|
||||
pimg->G[idx] = ptc[n8].y;
|
||||
@@ -100,8 +100,10 @@ for (idx=0; idx<sz; idx++) {
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s: %d/%d pixels, ratio %f\n", __func__, count, sz,
|
||||
if (verbosity > 1) {
|
||||
fprintf(stderr, "%s: %d/%d pixels, ratio %f\n", __func__, count, sz,
|
||||
(float)count/(float)sz);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user