blur

How to blur/pixelate part of an image using ImageMagick?

非 Y 不嫁゛ 提交于 2019-12-08 04:55:24
问题 I am using Perl and ImageMagick (Perl-API). In a first step i would like to take a rectangle of an image and blur this part of the image. Desired result is the original image with the rectangle blured. In a second step i need to blur a part of an image with a turned rectangle (i.e. turned by 35%). How can i achieve this? 回答1: As you asked for PerlMagick, I pulled my last few remaining hairs out to try and do this in Perl... the files 1.png , 2.png and 3.png are purely for debug so you can see

The blurring kernel of a low-quality camera

偶尔善良 提交于 2019-12-08 02:23:44
问题 I am doing some image enhancement experiments so I take photos from my cheap camera. The camera has mosaic artifacts and all images look like grid. I think pillbox (out-of-focus) kernel and Gaussian kernel would not be the best candidates. Any suggestions? EDIT : Sample I suspect this cannot be done via a constant kernel, because the effects on pixels are not the same (so there are "grids"). 回答1: The effects are non linear. (And probably non-stationary), so you cannot simply invert the

xCode - UIVisualEffectView animating

泪湿孤枕 提交于 2019-12-07 12:26:57
问题 I've an issue while animating a VisualEffetView. Here is the code where I declare it. UIBlurEffect* blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; effectView = [[UIVisualEffectView alloc] initWithEffect:blur]; effectView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; effectView.frame = self.bounds; self.layer.borderWidth = 1; [self addSubview:effectView]; When I animate the superview to make it grow, the Visual Effect follow the animation

UIVisualEffectView doesn't blur it's SKView superview

牧云@^-^@ 提交于 2019-12-07 10:28:20
问题 I'm writing a SpriteKit game and faced a problem with blurred view, which lies on the SKView. It is supposed to slide from the right when game is paused and it should blur the content of it's parent view (SKView) just like control center panel in iOS 7. Here is the desired appearance: What I actually get is: In fact the view on the left is not totally black, you can see how highlights from the superview are slightly struggling through almost opaque subview, but no blur is applied. Is it an

CSS background blur on scroll

微笑、不失礼 提交于 2019-12-07 05:04:54
问题 I have fixed background image and upon scroll I want the image to go blur. I know how to do blur in css but do it at specific scroll position. Here is an example: https://medium.com/good-music/f160ba9e6c52 Any thoughts, examples, advice of snippets will be helpful. Thanks 回答1: This codepen does exactly what you want. With browser support in mind it uses 2 images though instead of blur: http://codepen.io/sota0805/pen/pqLcv 回答2: On your website example ( https://medium.com/good-music

Error when trying to blur image using RenderScript support library on android phone

∥☆過路亽.° 提交于 2019-12-06 15:35:22
I'm trying to blur my image, and display it blurred on an RelativeLayout's background with RenderScript, the app works in the emulator but my app in the phone keeps crashing with this error: 08-05 22:21:36.543: E/RenderScript_jni(11549): No GC methods 08-05 22:21:36.553: D/dalvikvm(11549): No JNI_OnLoad found in /system/lib/libRSSupport.so 0x41803ab8, skipping init 08-05 22:21:36.557: E/dalvikvm(11549): ERROR: couldn't find native method 08-05 22:21:36.557: E/dalvikvm(11549): Requested: Landroid/support/v8/renderscript/RenderScript;._nInit:()V 08-05 22:21:36.558: E/JNIHelp(11549):

jQuery Blur Fires Before href

半腔热情 提交于 2019-12-06 15:04:37
问题 I am trying to use an Ajax search\suggest box. I use jQuery to handle the textbox losing focus. However, when I click on a link in the suggestion list jQuery fires the blur event and the link is not followed. Here is the jQuery code: $(document).ready(function() { $('#lstxt').click(function() { this.value = ''; }); $('#lstxt').blur(function() { this.value = 'Database Search'; document.getElementById('ls').innerHTML=''; document.getElementById('ls').style.border='0px'; }); }); How do I get it

Detecting how blurred an image is

烂漫一生 提交于 2019-12-06 13:53:45
问题 I want to detect how blurred an image is, may be It can be called "blur extend". I found a useful paper for this: http://www.cs.cmu.edu/~htong/pdf/ICME04_tong.pdf I used OpenCV and implemented all steps from this paper, but the result is not same as result from this paper. Can someone give me any advise for detecting "blur extend"? 回答1: You can detect a blurring image with using next algorithm: Convert the image into gray format. Calculate the maximal absolute second derivative from the gray

Blur Image On touch Android

荒凉一梦 提交于 2019-12-06 13:53:13
问题 I am new to android and I want to blur image on finger touch. I have searched some example but I found like based on seek bar value whole image get blurred. But I want something like I can set radius of finger touch and then based on that touch, that portion of image get blurred. MYANSWER MainActivity1.java here,MainActivity.java file contains bitmap that is passed from MainActivity.java . public class MainActivity1 extends Activity implements OnClickListener { // button private ImageButton

Android Box Blur Algorithm

和自甴很熟 提交于 2019-12-06 13:15:19
I have been trying to implement a box blur algorithm in android. The code seems to be fine but when trying to apply it, some areas in the blurred image have big yellow and white smudges all over the blurred photo. Can anyone help me find out what i'm doing wrong? Thanks: Here is what i have: public static Bitmap boxBlur(Bitmap bmp, int range) { assert (range & 1) == 0 : "Range must be odd."; Bitmap blurred = Bitmap.createBitmap(bmp.getWidth(), bmp.getHeight(), Config.ARGB_8888); Canvas c = new Canvas(blurred); int w = bmp.getWidth(); int h = bmp.getHeight(); int[] pixels = new int[bmp.getWidth