Hi guys, I want to limit the awarpsharp2 effect to black edges only in anime and cartoon sources. Is it possible?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
The basic idea is to build a mask of black AND edges, then overlay awarpsharp2 using that mask. Something along the lines of:
Code:black = mt_binarize(50).Invert() edges = mt_edge().mt_expand() blackedges = Overlay(black, edges, mode="multiply") #essentially black AND edges Overlay(last, aWarpSharp2(depth=10), mask=blackedges) # only apply awarpsharp2 at black edges
-
Note, that'a a very rough guide. You will need to do a lot of tuning. For example, black lines are often not very black. Binarize at 50 will only catch very black lines. You may need to raise the threshold. And with edges you may need to use mode="cartoon", and the thy1 and thy2 options to increase or decrease edge sensitivity. You may need to use mt_expand() make the mask wider, mt_inpand() to make it narrower. I also like to blur the mask before using it.
Similar Threads
-
Fix oversharpened edges.
By sirmechanoid in forum RestorationReplies: 1Last Post: 5th Feb 2018, 18:34 -
New pressed DVD sticky on edges
By Wilykit in forum MediaReplies: 1Last Post: 31st Jul 2016, 03:31 -
MeGUI - Black Level booster for anime/how to increase black edges?
By kairukun in forum Video ConversionReplies: 2Last Post: 5th Nov 2015, 02:44 -
Problem with deinterlacing and edges
By pub in forum Video ConversionReplies: 42Last Post: 14th Aug 2015, 12:21 -
Help smoothing blocky edges
By Stevie Hyper in forum Newbie / General discussionsReplies: 10Last Post: 2nd May 2015, 21:42