Put threshold option in imregionalmax
Ältere Kommentare anzeigen
Hi!
I have a 2D matrix A and I got with
B=imregionalmax(A)
a binary array B. Here 1 is for a local maxima and zero else. Then I used
C = imdilate(B, ones(3)
to include also neighboring zeros into ones. Now I did not realized that imregionalmax finds any kind of maxima and I would like to put a threshold like the minPeakHeight option in findpeaks function. Is there any smart way to put a threshold f.ex. at 0.1*max(A)?
Antworten (0)
Kategorien
Mehr zu Morphological Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!