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

Add a gaussian blur with specified sigma to a satellite image using R

I am trying to add a gaussian blur with sigma = 0.5 to a satellite image. I have found the package spatialEco has a function called gaussian.kernel which does exactly what I want. So basically I convert my raster image into a matrix, then I create a…
Nikos
  • 426
  • 2
  • 10
0
votes
1 answer

How can I use texelFetch() to get elements in a sampler1D texture?

I stored a 1D Gaussian filter in a sampler1D texture and send it to a fragment shader. When doing the vertical and horizontal blur, I use texelFetch() to get the weights in samlper1D map but didn't work. How is the data stored in the sampler1D ? in…
0
votes
0 answers

How to use GuassianBlur to blur the inside edges of a quadrangle with PIL?

I am trying to blur just the edges of an image (actually a quadrangle), but my code seems to be blurring the center of the image as well. My code is: alpha = img_rotated_rgba.split()[-1] newalpha =…
0
votes
0 answers

Sigma parameter for scipy.ndimage.gaussian_filter function I don't understand the concept of axes

I have simple example that is not working as expected import numpy as np from PIL import Image from scipy import ndimage def gaussian_smoothing(image, sigma = 1): im = np.array(image) sim = ndimage.gaussian_filter(im, sigma=sigma) …
0
votes
0 answers

What is the problem with my gaussian filter code?

The following code is supposed to be a gaussian filter, however when i compare the results with the gaussian filter function of scipy, i don't end up with the same results. You can see that that the first image is "whiter" than the other one (both…
0
votes
1 answer

How to reverse the process of linear filtering algorithms provided by OpenCV?

I am currently working on a Python project designed to blur certain objects in pictures by using some filtering functions provided by OpenCV, such as linear filter cv2.blur() and cv2.GaussianBlur(). However, I was told that these kinds of processes…
DYProMIKE
  • 1
  • 2
0
votes
1 answer

GaussianBlur(frame,frame,Size(10,10), 1.0); error: ‘Size’ was not declared in this scope

getting back to C++ after a while and cannot resolve an issue with this error. Please kindly help. #include "opencv2/highgui/highgui.hpp" #include #include #include int main() { …
Neo
  • 11
  • 2
0
votes
1 answer

Apply gaussian blur filter on 24/32 bits BMP images in C

I use the following structures to load in memory a bmp image: // header typedef struct { uint16_t type; // Magic identifier uint32_t size; // File size in bytes uint16_t reserved1; // Not used uint16_t reserved2; // Not used …
yontu
  • 37
  • 5
0
votes
1 answer

How to blur a closed path element in Paper.js?

Is it possible to blur a closed path element that has a fill using paperjs? Would I have to create an SVG feGaussianBlur primitive for each path that I wanted to blur? How would that affect performance if there were a few hundred path elements on…
Paint Laurent
  • 113
  • 1
  • 7
0
votes
1 answer

How can i create an svg filter that combines feTurbulence and feGaussianBlur

How can I create an svg circle with massive blurriness and grainy texture? I can't figure out how to combine GaussianBlur and feTurbulence in a filter, it's only the grainy texture that is being applied or reversed. blurriness i want to achieve…
0
votes
2 answers

Blur background in QML

I do not know how to blur the background of my window (something like backdrop-filter: blur in CSS). Apparently I have to use something called ShaderEffect but I do not know how to write a shader. I found the following code for Gaussian blur which I…
user11955706
0
votes
1 answer

CS50 pset4 filter blur function turns the whole image to one color

The blur function is the implementation of a box blur algorithm that works by taking each pixel and, for each color value, giving it a new value by averaging the color values of neighboring pixels. Trying to understand this problem took me a whole…
Annie
  • 21
  • 2
  • 10
0
votes
1 answer

Skipping irrelevant contours for digit recognition using openCV

Extra contours getting populated: I am using the following code to perform the contouring on a given image image = cv.imread('/content/drive/My Drive/Colab Notebooks/digit-recognition/test-2.jfif') grey = cv.cvtColor(image, cv.COLOR_BGR2GRAY) grey…
sunny
  • 149
  • 8
0
votes
0 answers

Gaussian Blur doesn't seem -svg

I use an SVG (which include Gaussian blur filter) as the background of a div but the filter part, no part of the svg which overflows the original path seem. As in the picture: How can I fix it? My SVG code:
Enes Giray
  • 326
  • 2
  • 9
0
votes
0 answers

Gaussian blur without refreshing

I want to know if there is a way to create a gaussian blur effect in kivy without the screen refreshing so much when the widget is animated or its size changes. Whenever I put anything in an EffectWidget and resize the app, it starts blinking like…