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
1 answer

Image blurring with different approaches

I am learning how to write down c++ program using open cv for Gaussian filtering for image blurring. After browsing lot of websites I found two different types of coding but both claim that those code can be used from image blurring and they applied…
Encipher
  • 1,370
  • 1
  • 14
  • 31
1
vote
0 answers

computing convolution kernel from smoothed and original image

I need to recover the sigma of a gaussian blur. I have both the original image and the smoothed image. I tried a deconvolution type approach: import numpy as np nz = 141 nx = 681 h = 25 x = [i*h / 1000 for i in range(nx)] z = [i*h / 1000 for i in…
1
vote
1 answer

Achieve same CIFilter effect on different sizes of same image

I'm building a photo editor and to keep a good performance I filter a small version of the image first and when the user wants to export it, then I filter the higher resolution image. I'm using CIGaussianBlur filter but I can't achieve same results…
El Tecla
  • 37
  • 8
1
vote
1 answer

error: OpenCV(4.5.4) :-1: error: (-5:Bad argument) in function 'GaussianBlur'

Trying to count number of objects in .npy image file import numpy as np img=np.load('A03_00Ac_Object Identities.npy') from matplotlib import pyplot as plt plt.imshow(img,cmap='gray') import cv2 plt.imshow(img, cmap='gray') blur =…
Nandhini
  • 53
  • 1
  • 2
  • 11
1
vote
0 answers

Kernel size estimation for Point spread function for image deblurring

I have two images, one blurred and another sharp image. I need to recover the original image using these images. I have used simple FFT and inverse FFT to estimate point spread function and deblurred image. fftorg = np.fft.fft2(img1) fftblur =…
1
vote
1 answer

Backdrop-filter ignores blur value on stacked elements in forefront

The smallest innermost circle in the snippet below has a backdrop-filter blur of 10rem that's not being applied. It looks like the span element is inheriting the same exact amount of blur from it's parent instead of taking the higher value that…
Lynel Hudson
  • 2,335
  • 1
  • 18
  • 34
1
vote
1 answer

Why is my gaussian blur approximation half strength?

I've implemented the stackblur algorithm (by Mario Klingemann) in Rust, and rewrote the horizontal pass to use iterators rather than indexing. However, the blur needs to be run twice to achieve full strength, comparing against GIMP. Doubling the…
1
vote
1 answer

How can I remove noise with Hough Line Transform with opencv-python

The purpose of this program is to map out the corners and edges of a room, here is where I'm at right now: The image on the top right is my result, and the image on the top left is my input. Currently, I am using canny edge detection with a…
1
vote
0 answers

finding contour of a mast after removing background noise

Main aim is to obtain the distance between the mast (as shown the original image) and the camera. The code works pretty well for detecting the pantry wires (since sky is the background) with the help of HoughLines. But when it comes for mast…
1
vote
1 answer

Blur the edges of a backdrop-filter element with CSS

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…
Lynel Hudson
  • 2,335
  • 1
  • 18
  • 34
1
vote
1 answer

How to demonstrate that the impulse response of the Gaussian Pyramid is Scale Invariant?

I built a Gaussian Pyramid from a 512x512 image with one Dirac pulse at the centre(256,256), then tried to follow the following procedure to prove that this pyramid is scale-invariant, and it has the same impulse response at each level, but the…
Bilal
  • 3,191
  • 4
  • 21
  • 49
1
vote
1 answer

SVG feGaussianBlur producing noticeable banding & edges

I'm working on some generative art using SVG. The one thing I noticed that SVG feGaussianBlur filter produces ugly result for nearest colors. E.g.:
Eugene
  • 63
  • 5
1
vote
1 answer

Image Deblurring by Frequency Domain Inverse Filter Design

I have a task about using a Gaussian Filter to blur an image then using the corresponding inverse Gaussian Filter to deblur the blurred image. The detailed instructions are shown below: Apply 2D-DFT to the spatial domain Gaussian filter, resulting…
Rosaria
  • 21
  • 2
1
vote
1 answer

How to add alpha value in blur shader

In the following blur shader currently the output image has alpha value of 1.0 , but i want the alpha to be dependent on the blur of the image. The shader code has been taken from the following question. OpenGL es 2.0 Gaussian blur on triangle The…
Summit
  • 2,112
  • 2
  • 12
  • 36
1
vote
1 answer

Separable gaussian blur - optimize vertical pass

I have implemented separable Gaussian blur. Horizontal pass was relatively easy to optimize with SIMD processing. However, I am not sure how to optimize vertical pass. Accessing elements is not very cache friendly and filling SIMD lane would mean…
Martin Perry
  • 9,232
  • 8
  • 46
  • 114