高斯平滑公式应用
如何对数组中的图应用高斯平滑公式?
这些数组被映射到颜色并绘制在图表上。 我想要应用高斯平滑后颜色的线性渐变。
我也想知道确切的高斯平滑公式。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您所要求的通常在照片编辑应用程序中称为“高斯模糊”。它只是使用高斯函数模糊图像的结果,导致视觉噪声和细节减少。您可以阅读有关高斯模糊和高斯函数一般介绍了专门讨论该主题的优秀维基百科文章,包括公式的性质以及这些函数的常见实现方式。使用的基本算法通常是相同的,但有几种不同的实现方法,主要是尝试加速任务的计算速度。
如果您正在寻找已编写的应用高斯模糊的代码,请查看以下链接:
使用 C# 和 GDI+ 进行图像处理
快速高斯模糊 v1.3
C# 中的快速高斯模糊算法
图像处理C#教程4 – 高斯模糊
C#中的快速高斯模糊算法
如果您正在寻找不需要您执行或阅读任何内容的直接解决方案如果您自己编码,有一些很棒的开源框架可供使用:
C# 图像库提供高斯模糊 在它的少数图像处理过滤器中,并且非常易于使用。
AForge.NET Framework 提供了高斯模糊作为其广泛的图像处理库中的众多滤镜之一。
至于如何将高斯模糊应用于数组中的图形,如果您需要更具体的帮助(例如发布表示相关图形对象的代码),则需要提供更多详细信息。
为了完整起见,我假设您有一系列
图像
,每个图像代表一个图形,存储在一个数组中。 (尽管如此,如果您只是使用标准数组,您可能会考虑转向强类型集合,例如List
。)要将效果应用到图表,您只需迭代数组中的每个图像,然后为特定的图像应用必要的代码您决定实施: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.
If you're looking for code that's already written to apply a Gaussian blur, check out these links:
Image Processing for Dummies with C# and GDI+
Fast Gaussian Blur v1.3
Fast Gaussian Blur Algorithm in C#
Image processing C# tutorial 4 – Gaussian blur
Fast Gaussian Blur Algorithm in C#
If you're looking for a drop-in solution that doesn't require you to do or read any coding yourself, there are a couple of great, open-source frameworks available:
The C# Image Library offers a Gaussian blur among its handful of image processing filters, and is incredibly easy to use.
The AForge.NET Framework provides a Gaussian blur as one of many filters in its extensive image processing library.
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).
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 aList<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: