__call__(self,
mat,
threshold=None,
sort_results=True)
(Call operator)
| source code
|
All any local maximum that are greater than threshhold up to a total
of max_length.
To save time arrays that hold the maxes and vals that are created once
and reused for each call. This means that local maximum detection is not
thread safe. If using this class with threads create an instance for each
thread.
- Parameters:
mat - 2d Real Matrix input.
threshold - Mininum value of local maxima.
sort_results - set to False to save time and return an unorderd list.
- Returns:
- maxes,vals
|