c# - guassian smoothening formula application -


how apply guassian smoothening formula graph in array?

these array mapped color , plotted on graph. want linear gradient of color after applying guassian smoothening..

i want know exact guassian smoothening formula too.

i believe you're asking typically called "gaussian blur" in photo-editing applications. result of blurring image using gaussian function, resulting in reduction of visual noise , detail. can read more gaussian blur , gaussian functions in general on excellent wikipedia articles devoted subjects, including nature of formulae , how these functions commonly implemented. basic algorithm used same, there few different approaches implementing it, attempting speed task computationally.

if you're looking code that's written apply gaussian blur, check out these links:

if you're looking drop-in solution doesn't require or read coding yourself, there couple of great, open-source frameworks available:


far how apply gaussian blur graph in array, you're going need provide more details if want more specific (like posting code representing graph objects in question).

for sake of completeness, i'm going assume have series of images, each representing graph, stored in array. (although, if you're using standard array, might consider moving strongly-typed collection, list<image>.) apply effect graphs, can iterate through each image in array , apply necessary code specific implementation settle upon:

public void smoothgraphs(list<image> graphs) {     foreach (image graph in graphs)     {         //apply gaussian blur method image          //(for example, aforge.net, might use following code:)         gaussianblur filter = new gaussianblur(4, 11);         filter.applyinplace(graph);     } } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -