This is a .m file version of an efficient non-maxima suppression algorithm for 1D arrays. It doesn't run very fast in matlab because it uses loops. But the algorithm itself is of linear complexity so a C implementation should run very fast. Documentation in the .m file. I developed this algorithm myself, and I don't know if there's already an existing algorithm that does it better (just didn't bother doing the research). So if you can alert me to a better algorithm please let me know. All improvements welcome.
Please send Emails to: firstname.lastname@example.org
A Z (2021). Fast non-maxima suppression in 1D (https://www.mathworks.com/matlabcentral/fileexchange/14296-fast-non-maxima-suppression-in-1d), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!