On Wed, Dec 09, 2015 at 12:07:47PM +0100, Jean Delvare wrote: > When the interpolated value is divided by the sum of weights, no > rounding is done, which means the value is truncated. This results in > a slight bias towards dark green in the interpolated area. Rounding > properly removes the bias. > > I measured this change to reduce the interpolation error by 1 to 2 % > on average on a number of sample input and logo area combinations. > > Signed-off-by: Jean Delvare <jdelv...@suse.de> > --- > We are having hack week 13 at SUSE and my project this time is to > improve and clean up vf_delogo. > > Note: All testing was done with band=1 as this is the new default > value. I purposely left the code branch dealing with the band area > untouched as it will ultimately be removed anyway. > > libavfilter/vf_delogo.c | 5 > tests/ref/fate/filter-delogo | 218 > +++++++++++++++++++++---------------------- > 2 files changed, 112 insertions(+), 111 deletions(-)
applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Freedom in capitalist society always remains about the same as it was in ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel