View Full Version : [req] blur only already blurry pixels
Backwoods
9th May 2005, 07:00
Would it be possible for a method to add more blur to already blurry pixels? Such as, an out of focus background gets blur applied to it but the foreground that is sharp and in focus remains untouched.
Sound plausible?
Mug Funky
9th May 2005, 11:51
that's basically what a spatial denoiser does :)
there's plenty out there that'll do this, and now tsp has implemented a true gaussian blur, we can build our own custom filters a fair bit easier (had to do it with yv12convolution before)
Backwoods
10th May 2005, 02:43
How do you suggest I go about trying this? I don't see how those filters would be able to blur only what is blurred already and leave the sharpeness alone. I'm not doubting, I'm just not grasping it.
Mug Funky
10th May 2005, 09:01
edge-masks do it.
imagine this: blur the picture, then subtract it from the original. the edges will be more different than the blurred bits, simply because something already flat will not be changed much by further flattening.
this means you can use this edge-mask to blend between the original and blurred clips. it's like photoshop's "smart blur" but with a soft threshold.
i had a script for it somewhere. i'll dig it up when i get home.
Didée
10th May 2005, 09:03
We already had that discussion, Backwoods. Currently, your best chances lie in fiddling with edgemasks, perhaps in combination with smartsmoothing.
In last instance, chances to separate "foreground with little detail" from "background with small distortions" are rather poor. Faces mostly are the first thing where the problems become visible.
Didée
10th May 2005, 12:03
Trying to make the problem "obvious" without longwinded explanations ...
A frame:
http://img159.echo.cx/img159/6691/foreandback8lk.th.jpg (http://img159.echo.cx/my.php?image=foreandback8lk.jpg)
Frame's edgemask (subtracted gauss of radius=4):
http://img159.echo.cx/img159/7842/foreandbackedge7oe.th.png (http://img159.echo.cx/my.php?image=foreandbackedge7oe.png)
Backwoods, what do you think how one should get grip of the background, whilst leaving the flat shades of the faces in the foreground fully untouched? Because, the "blurry-ness" of fore- and background pixels is pretty much the same ... and if you simply include face's flat shadings into the blurring, you get nothing but big cr*p.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.