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

3 views (last 30 days)
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?

Answers (1)

Harsh
Harsh on 20 Mar 2025
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 -

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!