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
5
votes
2 answers

How do I blur a particular area of an image in HTML?

The main idea is to obtain the UI design of the Canva website homepage. Here's the link: https://www.canva.com/en_in/ Steps that I followed: I found no way to blur a background image, so I inserted an image within a
with an id="background".…
4
votes
0 answers

Filling empty white pixels with nearest coloured pixel

Problem Statement: I have an image obtained after plotting several points and coloured according to a certain parameter value. Since I need to perform contour detection, I need to actually form a "contour". Thus I need to colour the white pixel…
Alpha
  • 399
  • 3
  • 9
4
votes
3 answers

How do I get to show Gaussian Kernel for 2d? (opencv)

I am using this: blur = cv2.GaussianBlur(dst,(5,5),0) And I wanted to show the kernel matrix by this: print(cv2.getGaussianKernel(ksize=(5,5),sigma=0)) But I am getting a type error: TypeError: an integer is required (got type tuple) If I only…
Gargameli
  • 85
  • 1
  • 2
  • 8
4
votes
1 answer

How to create noisy images for data augmentation

I followed the most upvoted answer to a question regarding adding noise to an image. However it doesn't work for me. I just want to observe different noise effects on image while using Python How to add noise (Gaussian/salt and pepper etc) to image…
4
votes
0 answers

Gaussian Blur Higher Radius Darkens Image

I implemented Gaussian Blur in Java, it seems to work on smaller radiuses but not on bigger ones. I'm not sure why on bigger radiuses the image darkens, I followed the same formula and the steps to apply the blur. Generating the blur matrix and…
hakuna matata
  • 3,243
  • 13
  • 56
  • 93
4
votes
1 answer

How to apply gussian blur to the picture in openCV?

I'm a complete beginner in openCV so please do excuse me if my question is foolish. Basically I'm trying to apply gussianBlur in openCv but it's showing a strange error I don't understand why ? Code: Mat tmp = new Mat (bitmap.getWidth(),…
Srinivas Nahak
  • 1,846
  • 4
  • 20
  • 45
4
votes
1 answer

Why the Line (antialiased) function of openCV2 gives different results on CV_16UC1 and CV_8UC1 without overflow

themap = cv.CreateMat(8,8,cv.CV_8UC1) cv.SetZero(themap) cv.Line(themap,(0,0),(7,7),(10),1,cv.CV_AA) #draw a line print np.asarray(themap[:,:]) #######output [[ 0 0 0 0 0 0 0 0] [ 0 0 0 0 0 0 0 0] [ 0 2 7 2 0 0 0 0] [ 0 0 …
Haoran Shi
  • 88
  • 9
4
votes
1 answer

How to approximate CSS box-shadow property using solid border only?

Please note that the question is not about CSS, rather about imaging, colors and a bit of mathematics. We are not talking here about how to do things in CSS. Make sure your answer does not contain a single line of CSS. Mathematics, tables, images,…
noomorph
  • 837
  • 1
  • 6
  • 14
4
votes
2 answers

Apply Gaussian Blur on a polygon using OpenCV and Python

I'm quite new to OpenCV and Python. I need to apply Gaussian Blur on contours that I get using cv2.findContours. I have successfully applied Gaussian Blur, but only on rectangles. I couldn't find any examples that show how to apply it to randomly…
Gorgi Rankovski
  • 2,303
  • 1
  • 23
  • 32
4
votes
0 answers

OpenCV filtering with dynamic kernel size

In OpenCV, I would like to implement a Gaussian blur where the kernel size depends on a parameter, such as distance from a certain point in the image. I.e., I would like to achieve a selective focus effect, with stronger blur the longer the distance…
ikkjo
  • 735
  • 1
  • 9
  • 18
3
votes
2 answers

How to calculate the radius of a Gaussian blur to get a similar rendering when upscaling?

I have two identical images except that the second one has a 6x dimension. How to calculate the radius value to get the same Gaussian blur effect on both images? I tried to multiply the blur radius by the ratio but it doesn't work. The calculation…
Dady
  • 71
  • 8
3
votes
1 answer

Achieve optimal gaussian blur effect in kivy

I am using kivy & kivymd and I am trying to achieve an optimal way to apply a gaussian blur to a FitImage that stands as a background image. Naturally, I tried the EffectWidget, however, this is not optimal considering the fact that I animate it and…
Omid Ki
  • 155
  • 3
  • 13
3
votes
0 answers

Alternative to backdrop-filter that works with CSS animations

We have a simple CSS background animation below with a div in the foreground that has backdrop-filter applied. * { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; } body { display: flex; justify-content: center;…
Lynel Hudson
  • 2,335
  • 1
  • 18
  • 34
3
votes
0 answers

Gaussian blur with alpha

Is it possible to make Gaussian blur like in Photoshop via GLSL? I found just some examples of shaders which work the same. But none of them return same result as Photoshop, if half-transparent blur. I do two-pass ping-pong Gaussian blur, where i…
dt_
  • 95
  • 1
  • 10
3
votes
0 answers

How to Blur a specific portion in an Image given a RectF object in Android using Canvas?

public void draw(Canvas canvas) { Log.d(TAG, "on draw text graphic"); if (element == null) { throw new IllegalStateException("Attempting to draw a null text."); } // Draws the bounding box around the TextBlock. RectF…
1
2
3
13 14