Questions tagged [gaussianblur]

In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss).

Gaussian Blur is a simple algorithm of blurring. In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss).

It is a widely used effect in graphics software, typically to reduce image noise and reduce detail. The visual effect of this blurring technique is a smooth blur resembling that of viewing the image through a translucent screen, distinctly different from the bokeh effect produced by an out-of-focus lens or the shadow of an object under usual illumination.

Gaussian smoothing is also used as a pre-processing stage in computer vision algorithms in order to enhance image structures at different scales - see scale space representation and scale space implementation.

210 questions
1
vote
0 answers

Gray scale images

I tried to apply a gaussian filter to 6 images to denoise them using the following code: import os import matplotlib.image as img def load_data(dir_name ='C:/Users/ASUS/Desktop/Self_Learning/Coursera/Deep Learning in Computer Vision/plates'): …
1
vote
1 answer

gaussian smoothing output misaligned

I am trying to perform gaussian smoothing on this image without using any opencv function (except displaying the image). However, the output I got after convoluting the image with the gaussian kernel is as follow: The output image seems to have…
jetjetboi
  • 142
  • 1
  • 14
1
vote
1 answer

I'm getting an error during the gaussian blur of an image using opencv in python. The code was working properly before and error appeared suddenly

I have written the following code: import cv2 import lxml.etree as xml import os import shutil for filename in os.listdir(paths['labels']): with open(paths['labels']+filename,'r'): img2 = cv2.imread(filename, cv2.IMREAD_COLOR) …
1
vote
2 answers

Data augmentation in python throws an error "int() argument must be a string, a bytes-like object or a number, not 'dict'"

I am trying to load all the images present in a folder, augment each of them and save it in a different repository I am able to augment an by hard coding the path and image name however, when I am trying to store the path of all the images and then…
1
vote
2 answers

How to Draw the Gaussian Blur Effect?

I need to draw the blur effect on the UIView using Objective C. Here is my design UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle: UIBlurEffectStyleExtraLight]; UIVisualEffectView *contentView = [[UIVisualEffectView alloc]…
Nandhakumar
  • 64
  • 2
  • 12
1
vote
1 answer

GaussianBlur in windows10 vs2017 and ubuntu g++ has different speed?

I use GaussianBlur on windows and ubuntu, the time of release mode in ubuntu is almost equal to debug mode in windows? in vs2017 Release and debug mode I open /openmp /fp:fast /sdl- /permissive- /Gy /Oi /arch:AVX2 /O2 /Ot /MD. And opencv3.4.0 build…
pofeishit
  • 11
  • 2
1
vote
1 answer

Can I do data augmentation with gaussian blur on my tf.Dataset using my GPU?

I would like to change my old queue based pipeline to the new dataset API on tensorflow for reasons of performance. However, once my code changed, it runs in 8 hours instead of 2. The use of my GPU was about 30/40% and it's now between 0 and 6%. I…
arretdes
  • 21
  • 4
1
vote
0 answers

How to compute delta X, Y when flattening a vector with shadows such that it's rendered at the same position?

I'm flattening a vector from a design tool (Sketch) to a PNG. A vector may have a shadow: In this case the X and Y before flattening are 100x100 and the width and height before flattening are 100x100 too. For automation reasons, I am automatically…
Tom
  • 8,536
  • 31
  • 133
  • 232
1
vote
0 answers

Can't get gaussian blur to match Sketch

I am trying to replicate a Gaussian blur in swift in my application, but the core image filter doesn't seem to act the same way as the Sketch Gaussian blur. I need the blur to cover the UIImage as well as extend past the bound of the UIImage and…
1
vote
1 answer

How do I pad values in the array so that I get this?

I am trying to get the big image from the smaller one (on the left). This is 15x15 kernel and I need to get the big image. How do I pad values into the array so that I get the big image? I am newbie. Explanation would be appreciated.
1
vote
1 answer

Is `sigma` expressed in the units of pixel for `gaussian_filter`?

I am looking at scipy.ndimage.gaussian_filter, and could not get what sigma means here. Is sigma= n means n is the number of pixels, thus a region within n number of pixel on all sides of a point contributes the most on the averaging?
konstant
  • 685
  • 1
  • 7
  • 19
1
vote
1 answer

WPF Window Blur + Drop shadow

I've done some searching but I can't seem to find a way to use both a drop shadow on my window, and have the window's background blurred. I'm currently using https://github.com/riverar/sample-win32-acrylicblur (all blur code in MainWindow.xaml.cs)…
Sef
  • 101
  • 2
  • 4
1
vote
1 answer

GLSL - Gaussian Blur Artifact Issue

First of all, due to requirements constraints, I am working in OpenGL v. 2.1, and GLSL 120. I have implemented a simple fragment shader that applies a two pass (horizontal & vertical) Gaussian blur with n-kernel weights obtained from Pascal's…
JDBones
  • 495
  • 1
  • 7
  • 18
1
vote
1 answer

Gaussian Blur never works correctly

For some reason every time that I do blur it turns out like this, and I really confused as to why that is. For bloom as well, the blurring was all pixelated and still is as every time I do blur this happens. I really have no idea of what the issue…
Charl1e
  • 75
  • 1
  • 9
1
vote
1 answer

Godot Gaussian Blur Shader

In my current Godot game I am using a blur shader to blur the background and keep the UI sharp. The shaders that I have used to create this effect work, but blur to little or look glitch. For example: float radius = 0.009; vec3 col =…
sk_in_the_house
  • 81
  • 2
  • 11