Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a couple of performance issues in
peak_local_max
(improve perfo…
…rmance of blob detectors and `corner_peaks`) (#782) It seems that we can get a large speedup in calls to `peak_local_max` when the default `min_distance=1` is specified. A bottleneck in that function can be the call to `ensure_spacing` which falls back to the CPU, but we don't need to call that function at all unless `min_distance>1` (no coordinates can be excluded if min_distance=1, so it is pointless to call it). I proposed the same changes upstream in scikit-image/scikit-image#7548. See additional comments and measurements made there. There should be no change in behavior with this MR, it is purely a performance improvement. Authors: - Gregory Lee (https://github.com/grlee77) Approvers: - Gigon Bae (https://github.com/gigony) URL: #782
- Loading branch information