Log in

View Full Version : dehaloing anime with a little sharpening


supernater
22nd July 2010, 13:43
I have a video that has haloing. I find that I can get rid of most of the haloing using

directshowsource("video.avi")
dehalo_alpha(rx=2.7, ry=2.7)
yahr()

However, the resulting video is kind of blurry. When I apply a sharpener, like this...

directshowsource("video.avi")
dehalo_alpha(rx=2.7, ry=2.7)
yahr()
LimitedSharpenFaster()

The blur is gone but some of the halo returns. I tried different combinations of FFT3dfilter and blinddehalo, but I think even more detail was lost with those. Can anyone offer any suggestions on how to fix this? If my sharpener is showing haloing, does that mean I didn't completely remove the haloing to begin with? I get the feeling this is one of those "pick your poison" scenerios where I have to choose between blurry video with almost no haloing or a sharper video with a little haloing. I'm hoping someone can suggest an alternative. Thanks.

Original
http://img84.imageshack.us/img84/1531/originalg.png (http://img84.imageshack.us/i/originalg.png/)

Double Dehalo
http://img204.imageshack.us/img204/9269/doubledehalo.png (http://img204.imageshack.us/i/doubledehalo.png/)

Double Dehalo with Sharpening
http://img401.imageshack.us/img401/4262/doubledehalosharpen.png (http://img401.imageshack.us/i/doubledehalosharpen.png/)

supernater
25th July 2010, 15:04
Found a good solution. After reading up on Didee's dehalo_alpha script I realized what I needed to do was increase brightstr to get rid of residual haloing that you can see around Leela's neck, yahr() wasn't even necessary. Also, increasing ry and rx did not seem to reduce haloing much over the defaults.

Also, I got better sharpening results with unfilter(50,50) than with limitedsharpenfaster() (well, they weren't actually "better", but the sharpening was more subtle so any residual halo artifacts were less noticable). The combo of increasing brightstr with a more subtle sharpening seemed to work for me. I also found that darkening the lines with toonlite(0.5) made any halo artifacts that were leftover almost unnoticeable. Anyway, just thought I'd post this in case anyone else stumbles across this thread.

7ekno
26th July 2010, 10:42
Nice!

Just for future reference would you mind posting the actual script you used with a demo of result (it would be handy for anybody looking for details in the future, and after readingyour OP am curious as to how the new method looks in comparison!!) ...

7ek

asarian
26th July 2010, 21:12
It looks most promising. :) I too would be interested in seeing the final script.

N.B. Not sure I like the dehalo-ing effect where Leela's eye meets her purple hair, though: the black delineation appears almost gone (or very fuzzy, at least). Otherwise, cool project.

Lyris
27th July 2010, 00:52
Yech! Those are the PAL Futurama DVDs, right? The US versions (released later) are much better and besides a bit of ringing from the lowpass filter, are pretty much near perfect as far as Hollywood-grade DVDs go.