Mercurial > hg > wm
changeset 17:824d192e5614
bug fix; mse minimization still missing
author | pmeerw@pan |
---|---|
date | Thu, 29 Jan 2009 18:28:05 +0100 |
parents | 4987db85cfae |
children | 3bdb67e76858 |
files | Meerwald/wm_koch_e.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Meerwald/wm_koch_e.c Mon Jun 30 21:03:40 2008 +0200 +++ b/Meerwald/wm_koch_e.c Thu Jan 29 18:28:05 2009 +0100 @@ -222,7 +222,7 @@ if (diff < quality) { // we have to impose the relationship, does not occur naturally w1 = (v1 > 0.0) ? (v1 + abs_diff) : (v1 - abs_diff); - w2 = (v2 > 0.0) ? (v2 - abs_diff) : (v2 + abs_diff); + w2 = v2; } else { w1 = v1; @@ -232,7 +232,7 @@ else { if (diff > -quality) { // force the relationship - w1 = (v1 > 0.0) ? (v1 - abs_diff) : (v1 + abs_diff); + w1 = v1; w2 = (v2 > 0.0) ? (v2 + abs_diff) : (v2 - abs_diff); } else {