Johannes Schönberger
c815bd6030
Fix peak_local_max doc string
2014-03-10 08:11:53 -04:00
Juan Nunez-Iglesias
6e4ec78de2
Use range instead of xrange
2013-04-03 18:09:21 +11:00
Juan Nunez-Iglesias
d9e6b509c5
Make exclude_borders option in peak_local_max nD
...
Prior modifications to peak_local_max make it nd-aware, but this does
not extend to the exclude_borders option. This commit changes that.
2013-04-03 17:56:04 +11:00
yangzetian
afde2b8ab8
change doc for indices and remove the unnecessarily tolist() operation
2013-04-02 12:35:11 +08:00
yangzetian
f77def35d8
Fix peak_local_max's output for ndarray when indices is set to False
2013-04-01 20:34:47 +08:00
Tony S Yu
17e7ba3de7
DOC: Fix Sphinx errors.
2013-03-02 17:22:10 -06:00
Johannes Schönberger
81c01eac0f
Fix confused parameters in doc string of peak_local_max
2012-12-09 17:39:15 +01:00
Josh Warner (Mac)
5cba69a4fa
test: add additional tests for 100% coverage of new peak_local_max
...
Also fix minor bug in label reordering.
2012-12-08 21:12:26 -06:00
Josh Warner (Mac)
4f68f1cd36
doc: fix and clarify peak_local_max docstring
2012-12-03 20:23:01 -06:00
Josh Warner (Mac)
98ce475113
style: initialize out at beginning of function
...
* remove API compatibility comment
* remove unnecessary `del maskim`
2012-11-25 23:09:06 -06:00
Josh Warner (Mac)
d2262227d9
BUG - rank_order now imported.
...
Also changed (peak.py):
* Standardized documentation as requested.
* Removed `threshold` as an optional kwarg.
* Removed extra line break incorrect by PEP8 standards.
Also changed (watershed.py):
* Added @deprecated decorator and import statement
2012-11-24 17:24:14 -06:00
Josh Warner (Mac)
e7288f9140
BUG - Dtype conversion to Boolean in a new code path not included in current tests.
2012-11-20 01:17:42 -06:00
Josh Warner (Mac)
da5a2a8221
BUG - Now parsing all unique labels != 0 properly, and set threshold_rel=0 in is_local_maximum() wrapper.
2012-11-20 01:11:31 -06:00
Josh Warner (Mac)
233b368195
BUG - Fixed a bug where the image was not properly masked for each unique label.
2012-11-20 00:45:01 -06:00
Josh Warner (Mac)
33c9514062
BUG - Fixed a bug where, when indices = False, output was not Boolean.
2012-11-20 00:36:12 -06:00
Josh Warner (Mac)
226eaaff92
FEAT - Unified peak finder backend
...
Detailed changelist:
* Fully documented new API for peak_local_max()
* Removed commented-out old code for is_local_maximum()
* Added "See also" and "Notes" to is_local_maximum() redirecting to peak_local_max()
2012-11-20 00:12:47 -06:00
Josh Warner (Mac)
63b5c5a4a0
FEAT - combined API from is_local_maximum() into peak_local_max()
...
is_local_maximum() is a wrapper function for peak_local_max()
is_local_maximum() runs much faster (~20% of prior runtime, nearly = to peak_local_max())
All tests in .feature and .morphology subpackages pass as written with these changes.
Todo:
* Fully document API
* remove commented-out old algorithm in is_local_maximum()
* add new tests for full coverage of new, more complex peak_local_max()
2012-11-19 23:38:58 -06:00
Johannes Schönberger
e9b8645ee6
Fix parameter format in doc string of peak_local_max
2012-08-26 00:29:18 +02:00
Johannes Schönberger
a87779b650
fix num_peaks parameter bug in peak_local_max
2012-08-10 20:45:50 +02:00
Andreas Mueller
f7b3d8062c
COSMIT pep8
2012-06-29 11:27:23 +02:00
Tony S Yu
a0c3e49742
Merge pull request #166 from 'vincent-albufera/exemple_modif'
...
DOC: Improve harris corners and peak detection examples and docstrings.
2012-04-25 00:52:53 -04:00
Tony S Yu
c3af26d37c
ENH: Add num_peaks to limit the number of peaks.
2012-04-16 00:19:56 -04:00
Tony S Yu
8bdc9f2ab4
Rename for clarity
...
"corner" is a relic from the original implementation in the harris filter.
2012-04-16 00:05:49 -04:00
Tony S Yu
0b33dd5811
Add docstring comment about flat peaks.
2012-04-16 00:02:45 -04:00
Tony S Yu
ae6ef22a69
Fix: return empty list for flat image.
2012-04-15 23:53:53 -04:00
Tony S Yu
2585a323ac
Change threshold test from >= to >.
2012-04-15 23:48:27 -04:00
Tony S Yu
187bc6d5b8
Deprecate threshold and replace absolute and relative thresholds.
2012-04-15 23:30:06 -04:00
Vincent Albufera
2aca8cd791
Addition of examples in the harris and peak local max function
2012-03-26 15:39:59 +02:00
Vincent Albufera
8c9777b967
Addition of examples in the harris and peak local max function
2012-03-21 14:27:12 +01:00
Tony S Yu
1c9b340fe6
Rename peak_min_dist to peak_local_max.
2012-02-02 22:33:57 -05:00
Tony S Yu
8bb8d93552
Use ndimage.maximum_filter to simplify peak detection.
...
This change should give identitical results to the previous implementation.
2012-02-02 22:33:57 -05:00
Tony S Yu
83dc4a1d40
Refactor peak detection algorithm from Harris detector.
2012-02-02 22:33:57 -05:00