Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

4
votes
1answer
95 views

Deriving blur from real optical formulae

Looking at the Wikipedia page for Circle of Confusion, and at such posts as this one, I completely understand how to calculate the values for near, far, focal planes and hyperfocal distance. I am also ...
3
votes
2answers
122 views

Bokeh from depth map

How do I generate bokeh that simulates shallow depth of field given a perfect depth map? Here's what I tried: Generated a sample scene using blender and corresponding depth map Using Python, ...
-2
votes
1answer
29 views

gaussFactorForOffset cannot call a non-function how to fixed this code?

Crossposted here http://forum.lwjgl.org/index.php?topic=6724 Hello guys I am trying to blur image using fragment shader but it is not smooth.. I search the internet and I found similar problem... ...
5
votes
2answers
45 views

Modulo vs Scaling vs Capping when performing filters

I'm currently taking a graphics course and we've recently covered cross-correlation with regards to using a filter matrix that is applied to a region of pixels in a sort of continual raster-type scan ...
1
vote
0answers
169 views

Depth aware blur - Kawase

I am using this Kawase Blur, to apply blur onto my buffer. But I would like to apply this blur in an uniform way, no matter the distance of the objects from the camera. I guess that I need to use the ...
1
vote
1answer
90 views

Questions about Blur effect

I am working on a specific blur effect that implies several behaviours. But before I would like to know what you think about those blurring algorithms according to performances and quality : Kawase ...
4
votes
0answers
73 views

Replace a chain of image blurs with one blur

In this question I asked how to implement a chain of blurs in one single step. Then I found out from the gaussian blur page of Wikipedia that: Applying multiple, successive gaussian blurs to an ...
5
votes
1answer
354 views

Is it better to blur the input or output of an edge detection shader for noise reduction?

To reduce noise of edge detection the norm seems like it is to apply a blur. However, is it generally better to apply the blur to the input of the edge detection. The input in my case being the depth ...
2
votes
0answers
48 views

detect blurred zones after conversion to black & white

I'm working on a document storage project and i found a problem. After converting/compressing a scanned document to black & white sometimes, some areas of the document are unreadable because ...
10
votes
1answer
148 views

Applying correct light physics to gaussian blur formulas for glow

I am trying to make a glow shader using separable gaussian blurring. I have recently been inspired by the short youtube video "computer color is broken" and I have messed with it with color ...
9
votes
1answer
348 views

Tweaking a glow shader to make it look better

I have a simple game and and subjects of it are these little lines. It is targeted for iOS and android so it has a HUGE range of processors that it could run on, right now. I am trying to add ...
7
votes
1answer
2k views

Detect in-focus regions of an image

Is there any strategy to detect the region of an image that is sharp and in-focus, in order to separate the out-of-focus background? I've tried using edge detection methods but without any success. ...
6
votes
1answer
1k views

How is motion blur implemented in modern realtime renderers?

When realtime renderers (such as 3d games) have motion blur, how is it usually implemented? I think I've heard something about needing to have motion vectors for each pixel but I'm not sure about ...
4
votes
1answer
270 views

How does directional Gaussian blurring work?

In image editing software, you often have the ability to do a directional blur where you can choose and angle and a magnitude of a blur. How does this actually work in practice with Gaussian blurring?...
9
votes
1answer
1k views

How is Depth of Field Implemented?

I know that depth of field involves blurring. There's some great information about how to do a Gaussian blur in the question How is Gaussian Blur Implemented? But, other than that, how is depth of ...