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
0 answers

how to create a gaussian kernel, with a given formula?

I need to create a gaussian kernel, this is the formula: This is what I've tried, but it returns a black picture. import matplotlib import numpy as np from matplotlib import pyplot as plt, colors def gaussian_kernel(row, col, mean_v=0,…
0
votes
0 answers

Remove the blurr using Tikhonov or TGSVD methods

This is my Matlab code, where its applied blurr to a image of a Mandril. The main ideia is using one of Tikhonov or TGSVD methods to remove the blurr. clear all close all clc load mandrill clear caption map N = 480; X_exact =…
gjfreitas
  • 5
  • 5
0
votes
0 answers

Make specific View / Text blur - React native

I want to make specific View blur in react native. I tried react-native-blur but it is creating a rectangle box while is not looking good in case of Text. Also the result is not good in case of android. Desired result - Text blurrness The solution…
0
votes
0 answers

Why there is diffirence in min threshold method when apply gaussian blur?

This part of code apply gaussian blur before threshold import cv2 from skimage.filters import threshold_minimum from skimage.filters import gaussian import matplotlib.pyplot as plt img_gray = cv2.imread("comp2.PNG",0) gau = gaussian(img_gray,…
0
votes
0 answers

Difference between `scipy.ndimage.fourier_gaussian` and own implementation

I am trying to implement myself a 2D gaussian filter (to debug some C++ code, outside the scope of this question). I focus on the first step: multiplication of the image and the Gaussian kernel in the Fourier space. The input data and its TF: import…
dagnic
  • 137
  • 10
0
votes
0 answers

Smooth / blur WebGL Polygons

I have some code that generates two WebGL triangles, one green and one blue, and puts them on a mapbox-gl-js map. The four coordinates are those of four European cities. Here is the code I have:
Pufferfishe
  • 139
  • 1
  • 7
0
votes
0 answers

Difficulty getting a black grid+border on the image. Imshow Matplotlib

I am having difficulty getting a black grid+border on the image I tried many ways but nothing is working properly. Either only the first image. I want all images to be grid-like, I have them in the middle. fig, axs = plt.subplots(1, 3, figsize=(15,…
Milan
  • 687
  • 7
  • 15
0
votes
0 answers

SwiftUI LinearGradiant background blur different results on iOS16 and iOS15

I am having some troubles to integrate a background view with a blurred linear gradient on iOS15, the same code doesn't have the same result as iOS16 (What is the behavior I am expecting to have on all my iOS targets) Here is a sample code to…
SnK
  • 58
  • 1
  • 6
0
votes
0 answers

Initializing with GaussianBlurBackgroundProcessor causes tab to freeze on some devices?

We have isolated an unusual problem in our ReactJS app with Twilio GaussianBlurBackgroundProcessor occuring with some webcam devices, where enabling GaussianBlurBackgroundProcessor when initializing the video component causes the tab to freeze. The…
Brendan Hill
  • 3,406
  • 4
  • 32
  • 61
0
votes
1 answer

Why is scipy's gaussian_filter1d not calculating properly the derivative?

I am trying to calculate the derivative of a function using scipy.ndimage.gaussian_filter1d using the keyword order but the result is not working properly. Instead if I apply first the gaussian filter to the function and then differenciate it by…
Puco4
  • 491
  • 5
  • 16
0
votes
1 answer

R: no applicable method for 'gaussiansmooth' applied to an object of class "c('matrix', 'array', 'double', 'numeric')" or "c('RasterLayer', 'Raster')

I am trying to use the function gaussiansmooth but I am receiving an error: Error in UseMethod("gaussiansmooth") : no applicable method for 'gaussiansmooth' applied to an object of class "c('RasterLayer', 'Raster', 'BasicRaster')". From the…
Nikos
  • 426
  • 2
  • 10
0
votes
2 answers

Resample (increase the pixel size) a satellite image using a Gaussian filter in Python

I have a satellite image (Landsat 8, panchromatic band) at 15m pixel size. My goal is to upscale the image (i.e., change the pixel size) at 460m using a Gaussian filter with sigma = 0.5. Is there a function in python that can do this (i.e., increase…
Nikos
  • 426
  • 2
  • 10
0
votes
1 answer

How to remove blur effect from image in iOS swift

I have an image on which I applied blur effect using the following code: @IBAction func blurSliderSlides(_ sender: UISlider) { let currentValue = Int(sender.value) let currentFilter = CIFilter(name: "CIGaussianBlur") …
0
votes
1 answer

GRASS GIS: Error while executing r.resamp.filter

I want to resample a raster from 15m to 460m using a Gaussian filter. The goal I am having a coarse image which I want to downscale. I also have a fine resolution band to assist the downscaling. The downscaling method I am using is called…
Nikos
  • 426
  • 2
  • 10
0
votes
1 answer

For loop to execute a process and save the data set using specific name in R

I have an original raster file (.tif format) and I want to blur it with a gaussian filter using different sigma parameters which are increasing with step 0.05 (i.e., sigma = 0.2, then sigma = 0.25, etc). Finally, I'd like like those newly created…
Nikos
  • 426
  • 2
  • 10