Changeset 3540


Ignore:
Timestamp:
May 30, 2009 6:01:29 PM (5 years ago)
Author:
sam
Message:

img2twit: reinstate old interpolation tuning for final picture quality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/examples/img2twit.cpp

    r3539 r3540  
    750750
    751751                // Try to attenuate peak artifacts
    752                 //k /= (0.1 * (RANGE_X * RANGE_X + RANGE_Y * RANGE_Y)
    753                 //       + (myx - fx) * (myx - fx) + (myy - fy) * (myy - fy));
     752                k *= pow(((myx - fx) * (myx - fx) + (myy - fy) * (myy - fy)
     753                          + 0.01) / (RANGE_X * RANGE_X + RANGE_Y * RANGE_Y),
     754                          -0.5);
    754755
    755756                // Cute circles
Note: See TracChangeset for help on using the changeset viewer.