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

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 -

카테고리

제품

릴리스

R2022b

질문:

2023년 5월 15일

답변:

2025년 3월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by