gaussianblur

Blur the edges of a backdrop-filter element with CSS

喜你入骨 提交于 2021-02-10 16:20:55
问题 document.querySelector( 'style' ).innerHTML += ` div { width: 40rem; height: 1rem; background-color: #444; } .earth_orbit, .moon { width: 15rem; margin-left: 100%; background-color: #222;; } .earth_orbit::before { width: 5rem; height: 5rem; background-color: #08f; } .moon { width: 2.5rem; height: 2.5rem; background-color: #ddd; } section { right: 5%; width: 37.5%; height: 50%; font-size: 5rem; font-weight: bold; text-align: center; backdrop-filter: blur( 2rem ); -webkit-backdrop-filter: blur(

How to get blur effect similar to Apple maps status bar?

假如想象 提交于 2021-02-07 03:42:49
问题 I'm working on a map based iOS 11 application and want to make the status bar blurred exactly like it appears in the Apple maps. This is how it looks on the Maps app: Currently, I'm using UIVisualEffectView to replicate this effect. Here's my code: let blurEffect = UIBlurEffect(style: .regular) blurredStatusBar = UIVisualEffectView(effect: blurEffect) blurredStatusBar?.translatesAutoresizingMaskIntoConstraints = false view.addSubview(blurredStatusBar!) However, whatever UIBlurEffect I use, I

How to get blur effect similar to Apple maps status bar?

六月ゝ 毕业季﹏ 提交于 2021-02-07 03:38:43
问题 I'm working on a map based iOS 11 application and want to make the status bar blurred exactly like it appears in the Apple maps. This is how it looks on the Maps app: Currently, I'm using UIVisualEffectView to replicate this effect. Here's my code: let blurEffect = UIBlurEffect(style: .regular) blurredStatusBar = UIVisualEffectView(effect: blurEffect) blurredStatusBar?.translatesAutoresizingMaskIntoConstraints = false view.addSubview(blurredStatusBar!) However, whatever UIBlurEffect I use, I

How to get blur effect similar to Apple maps status bar?

早过忘川 提交于 2021-02-07 03:38:22
问题 I'm working on a map based iOS 11 application and want to make the status bar blurred exactly like it appears in the Apple maps. This is how it looks on the Maps app: Currently, I'm using UIVisualEffectView to replicate this effect. Here's my code: let blurEffect = UIBlurEffect(style: .regular) blurredStatusBar = UIVisualEffectView(effect: blurEffect) blurredStatusBar?.translatesAutoresizingMaskIntoConstraints = false view.addSubview(blurredStatusBar!) However, whatever UIBlurEffect I use, I

Java: implementation of Gaussian Blur

帅比萌擦擦* 提交于 2021-01-28 22:15:42
问题 I need to implement Gaussian Blur in Java for 3x3, 5x5 and 7x7 matrix. Can you correct me if I'm wrong: I've a matrix(M) 3x3 (middle value is M(0, 0)): 1 2 1 2 4 2 1 2 1 I take one pixel(P) from image and for each nearest pixel: s = M(-1, -1) * P(-1, -1) + M(-1, 0) * P(-1, 0) + ... + M(1, 1) * P(1, 1) An then division it total value of matrix: P'(i, j) = s / M(-1, -1) + M(-1, 0) + ... + M(1, 1) That's all that my program do. I leave extreme pixels not changed. My program: for(int i = 1; i <

Blurring a Rect within a screenshot

醉酒当歌 提交于 2020-08-04 05:38:13
问题 I'm developing an Android app which uses a background Service to programmatically capture a screenshot of whatever is on the screen currently. I obtain the screenshot as a Bitmap . Next, I successfully imported OpenCV into my Android project. What I need to do now is blur a subset of this image, i.e. not the entire image itself, but a [rectangular] area or sub-region within the image. I have an array of Rect objects representing the rectangular regions that I need to blur within the

Blurring a Rect within a screenshot

蹲街弑〆低调 提交于 2020-08-04 05:36:29
问题 I'm developing an Android app which uses a background Service to programmatically capture a screenshot of whatever is on the screen currently. I obtain the screenshot as a Bitmap . Next, I successfully imported OpenCV into my Android project. What I need to do now is blur a subset of this image, i.e. not the entire image itself, but a [rectangular] area or sub-region within the image. I have an array of Rect objects representing the rectangular regions that I need to blur within the

How to define radius for blur with Python Pillow?

柔情痞子 提交于 2020-08-04 03:38:28
问题 I'm trying to blur an image with Pillow, using the ImageFilter as follows: from PIL import ImageFilter blurred_image = im.filter(ImageFilter.BLUR) This works fine, except that it has a set radius which is way too small for me. I want to blur the image so much that it can be barely recognised anymore. In the docs I see that the radius is set to 2 by default, but I don't really understand how I can set it to a larger value? Does anybody have any idea how I could increase the blur radius with

Android - Gaussian blur like effect - OpenGL

左心房为你撑大大i 提交于 2019-12-25 01:19:50
问题 Where not specified this question is just building on top of the CameraCaptureActivity within the grafika project found on github. It has a built in blur effect that utilises a 3x3 kernel kernel = new float[] { 1f/16f, 2f/16f, 1f/16f, 2f/16f, 4f/16f, 2f/16f, 1f/16f, 2f/16f, 1f/16f }; However this blur effect is not strong enough, im looking for something like what the gaussian effect can do on iOS with UIVisualEffectView , it looks something like this: A nice smooth heavy blur effect but so