How "medfilt1(X,N) filter logic works. How to convert this into embedded c language. please suggest how to do this.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello sir,
we preferred to use the median filter "medfilt1(X,N) to filter the noise and spikes in the data. please give the logic how this filter works, how we can convert the matlab code to embedded c format.
thanks & regards
0 Commenti
Risposte (1)
Image Analyst
il 22 Ago 2024
See
for a thorough explanation of the median filter.
For many MATLAB functions, you can edit them in the editor, like
>> edit medfilt1.m
and see the source code, though sometimes it's just a stub where the heavy lifting is done by a mex file which you can't get the code for.
To convert from MATLAB code to C you bascially do it a line at a time, though maybe you can ask an AI chat engine to do it and then make corrections.
To make code for "embedding" in silicon chips to make standalone devices (like mobile/portable instruments or vehicles or detached benchtop devices), see the MATLAB Coder toolbox.
Finally, see my attached demos that use a modified median filter to filter out salt and pepper noise from images.
0 Commenti
Vedere anche
Categorie
Scopri di più su Multirate Signal Processing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!