Put threshold option in imregionalmax

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)

Asked:

on 6 Apr 2017

Community Treasure Hunt

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

Start Hunting!