Unsharp for Avisynth
Unsharp for Avisynth
Hello, tried to Unsharp mask, ordered it to default settings () in the script Avisynth. Tell me please, what variables are and how to register for this filter in a script for Avisynth. Tried to prescribe "Diameter", etc., with them not working.
Re: Unsharp for Avisynth
Hi Alex,
First I would suggest using an appropriate GeneralConvolution() call if possible, because with the right kernel, it is equivalent to Unsharp Mask. It's discussed several times, e.g., here:
http://forum.doom9.org/showthread.php?t=51988
But it will be missing some of the options of the VirtualDub filter so maybe you need this parameter order:
mfd->diameter = argv[0].asInt();
mfd->strength = argv[1].asInt();
mfd->threshold = argv[2].asInt();
mfd->xloClip = argv[3].asInt();
mfd->xhiClip = argv[4].asInt();
mfd->yloClip = argv[5].asInt();
mfd->yhiClip = argv[6].asInt();
mfd->interlaced = !!argv[7].asInt();
First I would suggest using an appropriate GeneralConvolution() call if possible, because with the right kernel, it is equivalent to Unsharp Mask. It's discussed several times, e.g., here:
http://forum.doom9.org/showthread.php?t=51988
But it will be missing some of the options of the VirtualDub filter so maybe you need this parameter order:
mfd->diameter = argv[0].asInt();
mfd->strength = argv[1].asInt();
mfd->threshold = argv[2].asInt();
mfd->xloClip = argv[3].asInt();
mfd->xhiClip = argv[4].asInt();
mfd->yloClip = argv[5].asInt();
mfd->yhiClip = argv[6].asInt();
mfd->interlaced = !!argv[7].asInt();
Re: Unsharp for Avisynth
Thank you, admin
Re: Unsharp for Avisynth
You're welcome, Alex. I see I missed one of your questions. See here for how to import VirtualDub filters into your script.
http://avisynth.org/mediawiki/FAQ_using ... ub_plugins
http://avisynth.org/mediawiki/FAQ_using ... ub_plugins
Re: Unsharp for Avisynth
Thank you, admin. I know
Re: Unsharp for Avisynth
Hi,
I have a bit different problem with Unsharp Mask. Whenever I try to use it, VirtualDub just crashes.
Crash details (best guess as to cause):
An out-of-bounds memory access (access violation) occurred in module 'Unsharp'...
...reading address 07D49000...
...while running filter "Unsharp mask" (FilterInstance.cpp:1789).
I'm using VirtualDub 1.9.11 32-bit, on a 64-bit Windows 7.
I have a bit different problem with Unsharp Mask. Whenever I try to use it, VirtualDub just crashes.
Crash details (best guess as to cause):
An out-of-bounds memory access (access violation) occurred in module 'Unsharp'...
...reading address 07D49000...
...while running filter "Unsharp mask" (FilterInstance.cpp:1789).
I'm using VirtualDub 1.9.11 32-bit, on a 64-bit Windows 7.
Re: Unsharp for Avisynth
Sorry Skaven252, I just saw your post.
Can you tell me about the source stream if it is not too late for you?
Can you tell me about the source stream if it is not too late for you?