Share Your Experience: Take the 2024 Developer Survey

# Tag Info

Accepted

### Tweaking a glow shader to make it look better

Sigma and kernel size of Gaussian filter Regarding how to choose the sigma and the kernel size (pixels) of the Gaussian: you set the sigma based on how wide of a blur you want (judging it visually) ...
• 25k

### Blur with alpha transparency

Two suggestions: If your data is from an image you are displaying on a standard monitor, the chances are it is (or you are implicitly assuming that it's) in sRGB format. This means that the colour ...
• 4,261
Accepted

### Applying correct light physics to gaussian blur formulas for glow

Yes, your theory is correct. A gamma-correct blur entails converting the input pixels to linear color space, performing the blur weighting and accumulation in that space, and then converting back to ...
• 25k
Accepted

### Bokeh from depth map

The blog post that you talked about, is not about generating bokeh for a computer generated image. It is instead about generating a believable depth of field effect from an image captured by a ...
• 1,605

### Blurring image with RGB values without convolving it with a kernel

Blurring an image depends on being able to read from the image. If you don’t have access to the pixel data, or external information about the image contents (e.g. average hue / luminance), there’s no ...
• 2,222
Accepted

### Origin of blurring and colour distortion in monochrome diagrams

This looks like JPEG artefacts so I guess the image went through a JPEG compression step at one stage and that permanently introduced noise into the image. The red channel is blurred stronger because ...
• 2,322
Accepted

### Deriving blur from real optical formulae

First we can calculate the physical diameter of CoC in the image plane, given the lens parameters. This equation is from Wikipedia – Circle of confusion:  c = {|S_2 - S_1| \over S_2} {f^2 \over N(...
• 25k

### Modulo vs Scaling vs Capping when performing filters

While clamping or saturating may be the most common way of handling this situation, it's usually not the best. (But wrapping/modulus is one of the worst.) Another way of handling it is to either ...
• 3,421
Accepted

### Modulo vs Scaling vs Capping when performing filters

When doing a filter operation such as a blur, in many cases the filter itself will be normalized so its values sum to 1.0, precisely to avoid this problem. In cases where out-of-range outputs do need ...
• 25k
Accepted

If I blur the whole image and apply the result on the sphere, the white background will bleed onto the sphere shape and I want to avoid that. I also don't want that the blue (3) and yellow (4) sphere ...
• 1,566
Accepted

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

Standard blur removes high frequency content from the signal, whereas edge detection usually look into high frequency to detect edges. Be careful on how much blurring to apply to ensure that you don't ...
• 371
1 vote

### Blurring image with RGB values without convolving it with a kernel

While you can't do what you're asking, you might be able to use a compromise. It turns out that all human skin tones have the same hue. They vary only in saturation and brightness. You can see this on ...
• 3,421
1 vote

### Blurring image with RGB values without convolving it with a kernel

Since you know vaguely what the pixels you're covering up look like (they are faces), your best bet to get the appearance of a blur is to really blur an image of a face in a standard image editing ...
• 6,830
1 vote

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

It would be helpful if you posted some more information about what you're trying to do (rather than problem links) and some screenshots of what is actually happening. Being here I basically see "My ...
• 1,566

Only top scored, non community-wiki answers of a minimum length are eligible