从Matlab函数以C#处理图像 [英] Processing Image in C# from Matlab function

查看:165
本文介绍了从Matlab函数以C#处理图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

救救我!
在Matlab中:gaussian1 = fspecial(''gaussian'',size,sigma);
imfilter(Image,gaussian1);
那么,在C#中是否等同于该语句?
你有代码吗?
对不起,我的英语不好!
非常感谢!

Help me!
In Matlab : gaussian1=fspecial(''gaussian'',size,sigma);
imfilter(Image,gaussian1);
So, in C # it is equivalent to that statement?
Have you code?
Sorry for my bad English!
Thanks so much!!!

推荐答案

当然不是. C#是一种计算机语言,而不是一种库,并且在.NET和CLR语言中,库与应有的语言是分开的.

您是否只需要数字处理高斯分布?这并不难实现;您可能可以在网上找到足够的代码.

例如:
http://stackoverflow.com/questions/1662943/standard-normal- distribution-z-value-function-in-c [ ^ ],
http://social.msdn.microsoft.com/论坛/en-US/csharpgeneral/thread/504672ef-e5bc-4af9-bc61-7e5f1809d4cb [ http://www.csharpcity.com/reusable-code/random-number-generators/ [ ^ ].

尝试找到您需要的东西:
http://en.lmgtfy.com/?q=gaussian+distribution+%22C%23% 22 [ ^ ],
http://en.lmgtfy.com/?q=normal+distribution+%22C%23% 22 [ ^ ].

—SA
Of course not. C# is a computer language, not a library, and in .NET and CLR languages libraries are separate from languages, as it is supposed to be.

Do you just need to work with Gaussian distribution numerically? This is not to hard to implement; and you can probably find enough codes on the Web.

For example:
http://stackoverflow.com/questions/1662943/standard-normal-distribution-z-value-function-in-c[^],
http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/504672ef-e5bc-4af9-bc61-7e5f1809d4cb[^],
http://www.csharpcity.com/reusable-code/random-number-generators/[^].

Try to find what you need:
http://en.lmgtfy.com/?q=gaussian+distribution+%22C%23%22[^],
http://en.lmgtfy.com/?q=normal+distribution+%22C%23%22[^].

—SA


这篇关于从Matlab函数以C#处理图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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