This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

"Blur" filters in Hybrid
#17
Hello Selur,

  
Quote:btw. this will happen with others ai resizers too

   I noted that in the frame regarding the resize.
   there is the check box: "Stepped Resize" with the option to perform a second step resize.

  Given the problem that some AI resizers are introducing artifacts, it could be possible to reduce the impact by introducing a second step or an option where the image produced by the resizer is merged with another image produced with a simpler resizer. The merge could be implemented with a function like this one

PHP Code:
def resize_smooth(clipvs.VideoNodeoversharpenedvs.VideoNodekernel='bicubic'weight=0.5) -> vs.VideoNode:
    """
    Fix oversharpened upscales by merging the video with a blurry bicubic kernel downscale.
    """
    
down clip.fmtc.resample(oversharpened.widthoversharpened.heightkernel=kernel)
        
    return core.std.Merge(downoversharpenedweight)           


   where the kernel used for the resize could be selected in input and the weight allow to reduce the effects of AI resizers.

   The difference respect to using a DeHalo filter is that this filter is applied to the upscaled image. If the upscaler "invented" something wrong, the filter will be applied to the "invented" imaged, so the possibility to reduced the wrong effect is very limited. By merging the upscaled image with an upscaler not subject to "invent" could be possible to obtain a better result respect to a DeHalo filter.

Dan
Reply


Messages In This Thread
"Blur" filters in Hybrid - by Dan64 - 31.12.2022, 11:24
RE: "Blur" filters in Hybrid - by Selur - 31.12.2022, 11:36
RE: "Blur" filters in Hybrid - by Dan64 - 31.12.2022, 12:39
RE: "Blur" filters in Hybrid - by Selur - 31.12.2022, 12:51
RE: "Blur" filters in Hybrid - by Dan64 - 31.12.2022, 15:54
RE: "Blur" filters in Hybrid - by Selur - 01.01.2023, 12:12
RE: "Blur" filters in Hybrid - by Dan64 - 01.01.2023, 17:58
RE: "Blur" filters in Hybrid - by Selur - 01.01.2023, 18:19
RE: "Blur" filters in Hybrid - by Dan64 - 01.01.2023, 18:32
RE: "Blur" filters in Hybrid - by Selur - 01.01.2023, 18:38
RE: "Blur" filters in Hybrid - by Dan64 - 01.01.2023, 18:45
RE: "Blur" filters in Hybrid - by Dan64 - 01.01.2023, 22:51
RE: "Blur" filters in Hybrid - by Dan64 - 14.01.2023, 01:18
RE: "Blur" filters in Hybrid - by Selur - 14.01.2023, 08:55
RE: "Blur" filters in Hybrid - by Dan64 - 14.01.2023, 11:58
RE: "Blur" filters in Hybrid - by Selur - 14.01.2023, 12:17
RE: "Blur" filters in Hybrid - by Dan64 - 15.01.2023, 12:24
RE: "Blur" filters in Hybrid - by Selur - 15.01.2023, 14:16
RE: "Blur" filters in Hybrid - by Selur - 15.01.2023, 16:56
RE: "Blur" filters in Hybrid - by Dan64 - 15.01.2023, 18:18
RE: "Blur" filters in Hybrid - by Selur - 15.01.2023, 18:37
RE: "Blur" filters in Hybrid - by Dan64 - 17.01.2023, 22:40
RE: "Blur" filters in Hybrid - by Selur - 17.01.2023, 22:59
RE: "Blur" filters in Hybrid - by Dan64 - 17.01.2023, 23:16
RE: "Blur" filters in Hybrid - by Dan64 - 18.01.2023, 01:05
RE: "Blur" filters in Hybrid - by Selur - 18.01.2023, 05:32
RE: "Blur" filters in Hybrid - by Selur - 18.01.2023, 18:58
RE: "Blur" filters in Hybrid - by Dan64 - 18.01.2023, 19:51
RE: "Blur" filters in Hybrid - by Selur - 18.01.2023, 20:20
RE: "Blur" filters in Hybrid - by Dan64 - 19.01.2023, 22:14
RE: "Blur" filters in Hybrid - by Selur - 21.01.2023, 15:35
RE: "Blur" filters in Hybrid - by Dan64 - 22.01.2023, 11:19

Forum Jump:


Users browsing this thread: 4 Guest(s)