高斯平滑公式的应用 [英] guassian smoothening formula application

查看:408
本文介绍了高斯平滑公式的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何申请高斯平滑公式的曲线图是在阵列?

How to apply guassian smoothening formula for a graph which is in array?

这些阵列被映射到一个颜色,并绘制在图上。 我想要的颜色的线性渐变申请后,高斯平滑。

these array are mapped to a color and plotted on the graph. i want the linear gradient of color after applying guassian smoothening..

我想知道确切的高斯平滑的公式了。

I want to know the exact guassian smoothening formula too.

推荐答案

我相信你在问什么的通常被称为在照片编辑应用高斯模糊。这只不过是使用高斯函数,从而减少视觉噪声和细节的模糊的图像的结果。你可以阅读更多有关高斯模糊和的高斯函数的一般过硬维基百科文章专门受试者,包括下式的性质和如何这些功能通常实现的。所用的基本的算法通常是相同​​的,但也有几个不同的方法来实现它,主要是试图计算加快了任务。

I believe what you're asking for is typically called a "Gaussian blur" in photo-editing applications. It is simply the result of blurring an image using a Gaussian function, resulting in a reduction of visual noise and detail. You can read more about the Gaussian blur and Gaussian functions in general on the excellent Wikipedia articles devoted to the subjects, including the nature of the formulae and how these functions are commonly implemented. The basic algorithm used is generally the same, but there are a few different approaches to implementing it, mainly attempting to speed up the task computationally.

如果您正在寻找这已经写入应用高斯模糊,请查看以下链接code:

快速高斯模糊V1.3

快速高斯模糊算法的C#

图像处理C#教程4 - 高斯模糊

快速高斯模糊算法的C#

如果您正在寻找不要求你做或读取任何编码自己一个插入式解决方案,有一对夫妇伟大的,开源框架可供选择:

  • The C# Image Library offers a Gaussian blur among its handful of image processing filters, and is incredibly easy to use.

AForge.NET框架提供的高斯模糊许多过滤器在其广泛的图像处理库之一。

The AForge.NET Framework provides a Gaussian blur as one of many filters in its extensive image processing library.


至于如何将高斯模糊应用于图形中的数组,你会需要的,如果你想更具体的帮助(比如发布了code再presenting有问题的图形对象,以提供更多的细节)。


As far as how to apply a Gaussian blur to a graph in an array, you're going to need to provide more details if you want more specific help (like posting the code representing the graph objects in question).

有关为了完整起见,我将假设你有一系列的图片,每个重presenting图形,存储在数组中。 (尽管,如果你只是使用标准的数组,你可以考虑移动到一个强类型集合,就像一个的 列表<图像> )要应用的效果,你的图表,你可以简单地通过每幅图像遍历数组中,并应用必要code为您解决在具体实施:

For the sake of completeness, I'm going to assume that you have a series of Images, each representing a graph, stored in an array. (Although, if you're just using a standard array, you might consider moving to a strongly-typed collection, like a List<Image>.) To apply the effect to your graphs, you can simply iterate through each image in the array and apply the necessary code for the specific implementation you settle upon:

public void SmoothGraphs(List<Image> graphs)
{
    foreach (Image graph in graphs)
    {
        //Apply your Gaussian blur method to the image

        //(for example, with AForge.NET, you might use the following code:)
        GaussianBlur filter = new GaussianBlur(4, 11);
        filter.ApplyInPlace(graph);
    }
}

这篇关于高斯平滑公式的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆