Questions tagged [smoothing]

Smoothing related to statistical programing solutions in which a signal is filtered to create an approximating function that attempts to capture important patterns in the data, while leaving out noise, or for visual clarity to see general trends.

In scientific software for statistical computing and graphics, function smooth.spline implements a smoothing spline; function ksmooth implements a kernel estimator; function loess implements LOESS.

1479 questions
22
votes
6 answers

Smoothing Edges of a Binary Image

How to smooth the edges of this binary image of blood vessels obtained after thresholding. I tried a method somewhat similar to this method but did not quite get the result I expected. Here's the code: import cv2 import numpy as np INPUT =…
Abdul Fatir
  • 6,159
  • 5
  • 31
  • 58
22
votes
2 answers

Fill region between two loess-smoothed lines in R with ggplot

I'd like to know how to fill the area between to loess-smoothed lines in ggplot. The following data frame is used for the pictures: x y ymin ymax grp ydiff 1 1 3.285614 3.285614 10.14177 min 6.8561586 2 1 10.141773 …
Daniel
  • 7,252
  • 6
  • 26
  • 38
21
votes
6 answers

android drag view smooth

I have to drag some views on screen. I am modifying their position by changing left and top of their layout parameters from motion event on ACTION_MOVE from touch listener. Is there a way to "drag" items more smooth? Because tis kind of "dragging"…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
21
votes
2 answers

How to filter/smooth with SciPy/Numpy?

I am trying to filter/smooth signal obtained from a pressure transducer of sampling frequency 50 kHz. A sample signal is shown below: I would like to obtain a smooth signal obtained by loess in MATLAB (I am not plotting the same data, values are…
Nimal Naser
  • 448
  • 1
  • 3
  • 7
21
votes
5 answers

How can I make my form resize more smoothly?

When resizing a form with many controls, the form looks bad because of flickering. What are some tips to have a smoother form resizing?
zz1433
  • 3,528
  • 2
  • 28
  • 36
20
votes
4 answers

Font smoothing in Delphi

I had cause to need a label with a large font on a Delphi form and noticed that its curves were still slightly jagged. I compared this with the same size and font in MSWord which was much smoother. After research I found code that allowed me to…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
20
votes
3 answers

Is there a Python equivalent to the smooth.spline function in R

The smooth.spline function in R allows a tradeoff between roughness (as defined by the integrated square of the second derivative) and fitting the points (as defined by summing the squares of the residuals). This tradeoff is accomplished by the…
blucena
  • 291
  • 3
  • 6
20
votes
2 answers

How can I stretch bitmap in WPF without smoothing pixels

I'm working on SEM image processing application, written in WPF. I have an image display control, derived from Canvas, which displays image & overlays using DrawingVisuals (one for each "layer"). It also implements Zoom & Pan using scale & translate…
Zbynek Vrastil
  • 201
  • 2
  • 3
20
votes
5 answers

How to smoothen a plot in MATLAB?

I have some 9000 points that are plotted on a graph: [Full resolution] Actually, the plot is not as smooth as I wanted it to be. Is there some way I can smoothen the graph to a required degree? Or some form of thresholding so that I can selectively…
Lazer
  • 90,700
  • 113
  • 281
  • 364
19
votes
3 answers

How to smooth a freehand drawn SVG path?

I am looking for a solution to convert a freehand, user drawn SVG path, consisting of lots auf LineTo segments, into a smoother one. Preferred language would be JavaScript, but any advice is welcome.
florianguenther
  • 235
  • 2
  • 4
19
votes
3 answers

Smoothing out values of an array

If I had an array of numbers such as [3, 5, 0, 8, 4, 2, 6], is there a way to “smooth out” the values so they’re closer to each other and display less variance? I’ve looked into windowing the data using something called the Gaussian function for a…
robinnnnn
  • 1,675
  • 4
  • 17
  • 32
19
votes
6 answers

Mediaplayer progress update to seekbar not smooth?

I am working on an app with recorder and player. I am using mediaplayer to play the recorded .wav file and meantime I want to update to a seekbar. Everything is working fine But my problem is mediaplayer progress updation to seekbar is not happening…
Sreedev
  • 6,563
  • 5
  • 43
  • 66
18
votes
2 answers

Estimating rate of occurrence of an event with exponential smoothing and irregular events

Imagine that I have a set of measurements of x that are taken by many processes x0 ... xN at times t0 ... tN. Let's assume that at time t I want to make an estimate of the current value of x, based on the assumption that there is no long term trend…
abligh
  • 24,573
  • 4
  • 47
  • 84
18
votes
2 answers

Stupid Backoff implementation clarification

Hello people I'm implementing the Stupid Backoff (page 2, equation 5) smoothing technique for a project I'm working on and I have a question on its implementation. This is a smoothing algorithm used in NLP, Good-Turing is I guess the most well known…
Bar
  • 2,736
  • 3
  • 33
  • 41
17
votes
4 answers

Reducing noise on Data

I have 2 lists with data points in them. x = ["bunch of data points"] y = ["bunch of data points"] I've generated a graph using matplotlib in python import matplotlib.pyplot as plt plt.plot(x, y, linewidth=2, linestyle="-",…
PiccolMan
  • 4,854
  • 12
  • 35
  • 53
1
2
3
98 99