digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Sharpening filters? (http://www.digitalfaq.com/archives/avisynth/14086-avisynth-sharpening-filters.html)

supermule 01-25-2006 10:49 PM

Avisynth: Sharpening filters?
 
Whats a good sharpening filter to apply for DVD source, I could find asharp and warpsharp, any suggestions on a decent parameters for those ??

kwag 01-25-2006 10:57 PM

Try asharp(1, 4) or asharp(1, 3)
If you find it too strong, lower the second parameter.

-kwag

supermule 01-26-2006 02:53 AM

Quote:

Originally Posted by kwag
Try asharp(1, 4) or asharp(1, 3)
If you find it too strong, lower the second parameter.

-kwag

to be used before or after denoising, i tend to use removegrain with asharp ???

gamma 01-26-2006 04:54 AM

Quote:

Originally Posted by supermule
Quote:

Originally Posted by kwag
Try asharp(1, 4) or asharp(1, 3)
If you find it too strong, lower the second parameter.

-kwag

to be used before or after denoising, i tend to use removegrain with asharp ???

Always denoise before you sharpen. If you don't, the noise will be sharpenend and that's not what we want.

Have you already looked into lremovedust + limitedsharpen? These are currently the best denoiser and detail enhancer IMO.

Dialhot 01-26-2006 05:55 AM

Quote:

Originally Posted by gamma
Have you already looked into lremovedust + limitedsharpen? These are currently the best denoiser and detail enhancer IMO.

+1.

I did some test this w-e because I have some blury sources that absolutly need a detail enhancer. I'm crying about the slowness of limitedsharpen but nothign can beat it.

I tried : asharp(1,3) asharp(1,4) asharp(2,4) asharp(2,3) msharpen() and all parameters of limitedsharpen (edgemode, wide, Smode=4, Lmode=1, Lmode=2...). Nothing better than simply use the default parameters and of course each time, denoise before with remove dust.

Any time the winer is :
Code:

LRemoveDust_YV12(17,1)
LimitedSharpen()


supermule 01-26-2006 06:34 AM

Quote:

Originally Posted by gamma
Quote:

Originally Posted by supermule
Quote:

Originally Posted by kwag
Try asharp(1, 4) or asharp(1, 3)
If you find it too strong, lower the second parameter.

-kwag

to be used before or after denoising, i tend to use removegrain with asharp ???

Always denoise before you sharpen. If you don't, the noise will be sharpenend and that's not what we want.

Have you already looked into lremovedust + limitedsharpen? These are currently the best denoiser and detail enhancer IMO.

have used lremovedust() before but need to take a look at limitedsharpen.

Boulder 01-26-2006 07:25 AM

Better yet, check out LimitedSharpenFaster..and SeeSaw. Both are discussed thoroughly at the doom9 forums.

Dialhot 01-26-2006 08:09 AM

Quote:

Originally Posted by Boulder
Better yet, check out LimitedSharpenFaster..and SeeSaw. Both are discussed thoroughly at the doom9 forums.

Can you copy the code of the function or the link towards the thread please ? There is so much to reach about LS on doom9...

Thanks.

Boulder 01-26-2006 09:18 AM

Download the latest MaskTools 2.0 alpha : http://manao4.free.fr/

The function is included in the package, Manao included mg262's functions in MaskTools so there's no need to get the LimitedSupport.dll anymore.

Don't forget to apply Soothe:
http://forum.doom9.org/showthread.php?t=99679
Code:

function Soothe(clip sharp, clip orig, int "keep")
{
keep  = default(keep, 24)
keep  = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP    = string(keep)
diff  = yv12lutxy(orig,sharp,"x y - 128 +", U=1,V=1)
diff2 = diff.temporalsoften(1,255,255,32,2)
diff3 = yv12lutxy(diff,diff2,  "x 128 - y 128 - * 0 < x 128 - 100 / "  + KP
 \                          + " * 128 + x 128 - abs y 128 - abs > x " + KP
 \                          + " * y 100 " + KP + " - * + 100 / x ? ?",  U=1,V=1)
return( yv12lutxy(orig,diff3,"x y 128 - -",U=2,V=2) )
}

This version might work with MaskTools 2.0 alpha, better check it before using though as Manao changed some syntax a while ago:
Code:

function Soothe(clip sharp, clip orig, int "keep")
{
keep  = default(keep, 24)
keep  = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP    = string(keep)
diff  = mt_lutxy(orig,sharp,"x y - 128 +", U=1,V=1)
diff2 = diff.temporalsoften(1,255,255,32,2)
diff3 = mt_lutxy(diff,diff2,  "x 128 - y 128 - * 0 < x 128 - 100 / "  + KP
 \                          + " * 128 + x 128 - abs y 128 - abs > x " + KP
 \                          + " * y 100 " + KP + " - * + 100 / x ? ?",  U=1,V=1)
return( mt_lutxy(orig,diff3,"x y 128 - -",U=2,V=2) )
}

SeeSaw is discussed here: http://forum.doom9.org/showthread.php?t=104701
http://home.arcor.de/dhanselmann/_st...2006.01.02.rar (I don't know if it's the latest version so check Didée's online directory to make sure)

Dialhot 01-26-2006 10:39 AM

Thank you, I will give a look to that :)

WOWIEGURL 11-06-2006 07:55 AM

where can I download these filters?

LRemoveDust_YV12(17,1)
LimitedSharpen()

Dialhot 11-06-2006 08:28 AM

Quote:

Originally Posted by WOWIEGURL
where can I download these filters?

LRemoveDust_YV12(17,1)
LimitedSharpen()

These are functions (using several filters). If you wish you can load the whole content of my plugin directory in the link below. You will find these functions in the file calld "function.avsi" and the needed dll are also in the rar.


http://perso.wanadoo.fr/dialhot/Avis...ll_Plugins.rar

WOWIEGURL 11-18-2006 07:19 AM

why is it after installing the filters from your zip file Dialhot.. the wmp says "computer is running low on memory" when I play the avs file? I have like 100 gigs left in my c drive free.

incredible 11-18-2006 10:56 AM

Quote:

Originally Posted by WOWIEGURL
the wmp says "computer is running low on memory" when I play the avs file? I have like 100 gigs left in my c drive free.

But maybe you dont have 100 Gigs left as phisical RAM! :roll:

gamma 11-21-2006 12:28 PM

Quote:

Originally Posted by incredible
Quote:

Originally Posted by WOWIEGURL
the wmp says "computer is running low on memory" when I play the avs file? I have like 100 gigs left in my c drive free.

But maybe you dont have 100 Gigs left as phisical RAM! :roll:

:lol:

rds_correia 12-02-2006 07:32 AM

OMG!!! :lol:


All times are GMT -5. The time now is 07:34 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.