Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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!!!
Posted
Updated 25-Sep-11 5:57am
v2

1 solution

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
 
Share this answer
 
Comments
C_Johnson 26-Sep-11 5:23am    
A good Image processing library you may want to try is EMGU it's a good c# wrapper for opencv it has inbuilt functions for applying gaussian filters etc http://www.emgu.com/wiki/index.php/Main_Page
Sergey Alexandrovich Kryukov 30-Sep-11 19:57pm    
Why would not you post as your own solution?
--SA
C_Johnson 1-Oct-11 13:51pm    
Well it was a mere suggestion and not technically a solution, you've given several good solutions and I merely wished to contribute, hope you don't mind, Cheers Chris

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900