Put threshold option in imregionalmax
Show older comments
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)?
Answers (0)
Categories
Find more on Morphological Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!