Log in

View Full Version : SharpResize has colors wrong and introduces a LOT of artifacts?


PiXuS
7th October 2004, 03:49
Edit: Added URL to PNG showing the problems.
Changed images host from geocities to ImageShack.

Hello all..

This is my first post (and I am wetting my pants with excitement).

I tried mf SharpResize on a short (~1 min) clip from the movie "The
Dirty Dozen". I noticed that the colors were completely wrong and
there were a LOT of apparent artifacts.

The picture at the top is the SharpResized version and at the bottom
the Lanczos4Resize version. Both are @ 736x384. Look at the cell bars... the teeth of the guy...

(Click on the images for a bigger version)

http://img8.exs.cx/img8/7509/comp1.th.png (http://img8.exs.cx/my.php?loc=img8&image=comp1.png)

On the next pair, the color difference is more apparent. Also look at the white helmets of the soldiers...

http://img8.exs.cx/img8/4491/comp2.th.png (http://img8.exs.cx/my.php?loc=img8&image=comp2.png)

Anyone else noticed that? Well.. actually, it is SO apparent that
there is a problem with this picutre, that I guess MY settings are
wrong.

Here is the AVS script I used to produce the SharpResized clip:

LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll") # version 2004-06-07
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll") # version 0.0.1.1
LoadPlugin("C:\AviSynthPlugins\WarpSharp.dll") # version warpsharp_25_dll_20030103 from http://www.avisynth.org/warpenterprises/
Import("C:\AviSynthPlugins\SharpTools-v0.3.avs")

mpeg2source("C:\dvd-rips\THE_DIRTY_DOZEN\VIDEO_TS\test.d2v")

crop(0,66,720,344)
SharpResize(736,384)


Any idea?

Thanks!

p.s.: I am French speaking so don't tear me apart if you find my
English sub-par.

PiXuS
7th October 2004, 14:00
Added URLs to PNGs to my original po

PiXuS
7th October 2004, 18:54
I found some interesting stuff...

If I use SharpResize as is, I get major artifacts and decoloration.

If I modify SharpTools-v0.3.avs and change the calls to XSharpen from:

XSharpen(xstren, xthresh)

to

XSharpen()

everywhere in the function SharpResize, it kills the artifacts (that's good), but the decoloration remains (that's bad).

So then, I tried to manually do what SSXSharpen (not SharpResize) does with the following lines:

Lanczos4Resize(width*4, height*4)
XSharpen()
Lanczos4Resize(width,height)

And the results are really great!

So any idea what is (it is, right ?) wrong with SharpResize? The 255,255 params produce good results with Anime material?

Thanks.