gaussianblur

Replace a chain of image blurs with one blur

纵然是瞬间 提交于 2019-12-05 04:43:55
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 image has the same effect as applying a single, larger gaussian blur, whose radius is the square root of the sum of the squares of the blur radii that were actually applied. For example, applying successive gaussian blurs with radii of 6 and 8 gives the same results as applying a single gaussian blur of radius 10, since sqrt {6^{2}+8^{2}}=10. So I thought that blur and singleBlur were the same in the

SVG feGaussianBlur and feColorMatrix filters not working in Chrome?

﹥>﹥吖頭↗ 提交于 2019-12-04 17:25:36
I'm attempting to use the filters from this code http://bl.ocks.org/nbremer/0e98c72b043590769facc5e829ebf43f . The achieved effect is good in Firefox 56 (64bits) on Win 7, but it is strange in Chrome 62 (64bits). The colors are much lighter and the effect doesn't look as smooth as in FF. I've read a lot of questions about Safari not displaying these filters correctly, but I can't find anything about Chrome. Please see screenshots below : Firefox Chrome Any idea what is causing the difference and how to fix it in Chrome ? The Color Matrix filter applied reads <feColorMatrix mode="matrix" values

OpenGL es 2.0 Gaussian blur on triangle

大憨熊 提交于 2019-12-04 02:00:40
问题 I recently learn opengl es 2.0, and now I try to make a gaussian blur on triangles generate by myself. I have some difficult to understand examples on the web and most apply the blur on an image. I know I have to use framebuffer but I don't know how to draw triangle on this and apply blur. Is it possible to see a real and complete code in C++ with good explication ? EDIT : #include <stdio.h> #include <stdlib.h> #include <iostream> #define GLFW_INCLUDE_ES2 #include <GLFW/glfw3.h> #include

Fast Gaussian blur at pause [closed]

﹥>﹥吖頭↗ 提交于 2019-12-03 14:16:41
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. In cocos2d-x I need to implement fast gaussian blur and here is how it should looks like( I just found some game on the App Store with already done such blur, in unity): So, it's nice fadeIn - fadeOut blur when user pauses the game. GPUImage already has a fast blur I need, but I can't find solution for cocos2d-x. v1 code when it was (GPUImage v1) Objective C v2 code when is now Swift(GPUImage v2) Swift GPUImage-x C++

OpenGL es 2.0 Gaussian blur on triangle

与世无争的帅哥 提交于 2019-12-01 12:22:31
I recently learn opengl es 2.0, and now I try to make a gaussian blur on triangles generate by myself. I have some difficult to understand examples on the web and most apply the blur on an image. I know I have to use framebuffer but I don't know how to draw triangle on this and apply blur. Is it possible to see a real and complete code in C++ with good explication ? EDIT : #include <stdio.h> #include <stdlib.h> #include <iostream> #define GLFW_INCLUDE_ES2 #include <GLFW/glfw3.h> #include "shaders.hpp" #include "camera.hpp" unsigned int vbo, cbo, tbo; GLuint _fbo, _fbo2, _tex, _tex2; static

CSS-only Acrylic Material from Fluent Design System

社会主义新天地 提交于 2019-11-28 15:49:16
With the advent of Microsoft's Fluent Design System and the propagation of the new Acrylic Material around the Windows ecosystem, I thought it would be great to use it in some Web layouts. Acoording to the spec , the composition of an acrylic layer is: So I went to try a CSS-only approach inspired by the layers in that picture, this way: body { margin: 0; font: 1em/1.4 Sans-serif; background: url("https://cdn.pixabay.com/photo/2017/03/27/16/50/beach-2179624_1280.jpg") center center; background-size: 100vw auto; } main { display: flex; align-items: center; justify-content: center; height: 100vh

CSS-only Acrylic Material from Fluent Design System

浪子不回头ぞ 提交于 2019-11-27 09:19:42
问题 With the advent of Microsoft's Fluent Design System and the propagation of the new Acrylic Material around the Windows ecosystem, I thought it would be great to use it in some Web layouts. Acoording to the spec, the composition of an acrylic layer is: So I went to try a CSS-only approach inspired by the layers in that picture, this way: body { margin: 0; font: 1em/1.4 Sans-serif; background: url("https://cdn.pixabay.com/photo/2017/03/27/16/50/beach-2179624_1280.jpg") center center; background

How do I gaussian blur an image without using any in-built gaussian functions?

六眼飞鱼酱① 提交于 2019-11-26 21:18:45
I want to blur my image using the native Gaussian blur formula. I read this , but I am not sure how to implement this. How do I use the formula to decide weights? I do not want to use any built in functions like what MATLAB has Writing a naive gaussian blur is actually pretty easy. It is done in exactly the same way as any other convolution filter. The only difference between a box and a gaussian filter is the matrix you use. Imagine you have an image defined as follows: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

How do I gaussian blur an image without using any in-built gaussian functions?

Deadly 提交于 2019-11-26 07:55:02
问题 I want to blur my image using the native Gaussian blur formula. I read the Wikipedia article, but I am not sure how to implement this. How do I use the formula to decide weights? I do not want to use any built in functions like what MATLAB has 回答1: Writing a naive gaussian blur is actually pretty easy. It is done in exactly the same way as any other convolution filter. The only difference between a box and a gaussian filter is the matrix you use. Imagine you have an image defined as follows: