Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
5th May 2022, 22:20 | #1 | Link |
Registered User
Join Date: Dec 2005
Location: Sweden
Posts: 703
|
Sharpen function - nasty artifacts
I made a sharpen function called BSharp which works well in most cases and pretty fast. But the culprit that gives me the artifacts seen in the image below seems to be internal sharpen. Does someone have an idea how to get rid of these nasty artifacts yet still retain the sharpening?
Function: Code:
function bsharp(clip c, float "str", float "pblur"){ str = Default(str, 0.5) pblur = Default(pblur, 0.7) B = merge(c,c.removegrain(20),(pblur)) S = B.sharpen(1.0).sharpen(str) M = C.greyscale().ex_levels(47,0.76,170) mt_merge(c,s,m,luma=true,Y=3,U=2,V=2) return last } |
5th May 2022, 22:25 | #2 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
Not sure if this has something to do with it, but luma=true forces chroma processing in mt_merge. So U=2,V=2 does not do anything. Set luma to false and see if it helps any.
Last edited by Reel.Deel; 5th May 2022 at 22:27. Reason: typo |
6th May 2022, 15:26 | #6 | Link |
Banana User
Join Date: Sep 2008
Posts: 989
|
Try all 9000 of them: http://avisynth.nl/index.php/Externa...ers#Sharpeners
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
6th May 2022, 22:46 | #7 | Link | |
Registered User
Join Date: Dec 2005
Location: Sweden
Posts: 703
|
Quote:
|
|
7th May 2022, 15:58 | #8 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 7th May 2022 at 16:04. |
|
|
|