I believe that what you ask for is usually called βGaussian blurβ in photo editing applications. This is simply the result of blurring the image using the Gaussian function, which reduces visual noise and detail. You can learn more about Gaussian blur and Gaussian functions in general information about the excellent Wikipedia articles on subjects, including the nature of formulas and how these functions are usually implemented. The underlying algorithm used is usually the same, but there are several different approaches to its implementation, mainly an attempt to speed up the computation of a computational problem.
If you are looking for code that has already been written to apply Gaussian Blur, check out these links:
If you are looking for a solution for a drop-down menu that does not require you to do or read any encoding yourself, there are some great openable source frameworks:
As for how to apply Gaussian blurring to a graph in an array, you will need to provide more detailed information if you want more specific help (for example, publish code representing the graph objects in question).
For completeness, I'm going to assume that you have a series of Images , each of which is a graph stored in an array. (Although if you just use a standard array, you might consider switching to a strongly typed collection, such as List<Image> .) To apply an effect to your graphs, you can simply iterate over each image in the array and apply the necessary code for a specific implementation, on which you count:
public void SmoothGraphs(List<Image> graphs) { foreach (Image graph in graphs) {
source share