Put threshold option in imregionalmax

1 次查看(过去 30 天)
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)?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by