Why wiener and median filter doesnt work after convert with embedded coder in c language?

9 次查看(过去 30 天)
Hello,
I am using wiener and median filter to remove gaussian noise in c language. My project use real sound and add gaussian noise then filtering with both fiter. I created matlab function for gaussian noise and both filter. I am using embedded coder to convert matlab function to c language and when i use that c code in my project both filter not work. When i convert gaussian noise everithing work fine but when i convert both filter same way, they dont work. My function is very simple only input, output and wiener and median matlab function. How can i fix this problem?

回答(1 个)

Harsh
Harsh 2025-3-20
The wiener and median filters that you created might not be working in C due to various reasons:
You may consider using “weiner2” and “medfilt1” rather than implementing them by yourself. Both functions are supported for code generation. Please refer to the following documentation for more info -

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by