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. |
|
|
Thread Tools | Search this Thread | Display Modes |
2nd October 2021, 22:26 | #1 | Link |
Registered User
Join Date: Jan 2015
Posts: 1,056
|
Blurring/Deblurring with generalconvolution; what am I doing wrong?
I've been experimenting recently with a deinterlacing strategy that performs a vertical Gaussian blur, then resharpens by the same amount, like Blur(1.0).sharpen(1.0) but performed in only one direction. The goal is to blend orphaned fields with their closest matches, without changing the overall sharpness of the non-interlaced parts of the image and without needing to rely on dumb bad algorithms to figure out which parts of the image are interlaced and which aren't.
I've encountered three curiosities so far. The first is that Blur(1.0).Sharpen(1.0), when applied to progressive content, yields a blurrier image than the original. Not by a lot, but it's noticeable. The second is that, if I'm doing my math correctly and I understand how generalconvolution works, the correct amount of blurring and deblurring SHOULD be: Code:
generalconvolution(0,"0 1 0 0 2 0 0 1 0") generalconvolution(0,"0 -1 0 0 6 0 0 -1 0") Code:
generalconvolution(0,"0 1 0 0 2 0 0 1 0") generalconvolution(0,"0 -1 0 0 4 0 0 -1 0") Code:
generalconvolution(0,"0 1 0 0 2 0 0 1 0") generalconvolution(0,"0 -3 0 0 11 0 0 -3 0") Any clarification on what's going on would be appreciated.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers. |
2nd October 2021, 23:06 | #2 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
EDIT: Use eg Blur(0, 1.0) Sharpen(0, 1.0), vertical only.
__________________
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; 2nd October 2021 at 23:25. |
||
3rd October 2021, 01:48 | #3 | Link |
Registered User
Join Date: Jan 2015
Posts: 1,056
|
Well, that's definitely a useful shortcut! Thanks
On the other hand, I'm a bit disappointed that blending two fields from different frames together often produces results that look very different from blending the frames themselves together. For example, expectation: Reality: For that matter, even blurring alone, without the following sharpen step, doesn't completely eliminate the scanlines. How is THAT possible?
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers. Last edited by Katie Boundary; 3rd October 2021 at 02:31. |
Thread Tools | Search this Thread |
Display Modes | |
|
|