Commit Graph

53 Commits

Author SHA1 Message Date
Jeremy Metz 20d4e7dde8 Finally fixed issue:
Issue Was with remnant of min_distance logic (i.e. `footprint is not
None`
2016-02-24 01:36:21 +00:00
Jeremy Metz c0e3dcc69f Reverted tests to boolean exclude_border 2016-02-24 00:02:41 +00:00
Jeremy Metz 25d15c603d Updated default value to be backwards compatible 2016-02-23 22:17:28 +00:00
Jeremy Metz 5e6c98ac01 Added backwards compatibility for exclude_border 2016-02-22 10:06:40 +00:00
Jeremy Metz d2917a6028 Factor of 2 : PEP8 adjustment 2016-02-19 16:17:36 +00:00
Jeremy Metz 0873a6fc9f Factor of 2 in remove added (due to footprint) 2016-02-19 16:16:49 +00:00
Jeremy Metz 8f9a9fa388 Minor update to docstring 2016-02-19 16:10:29 +00:00
Jeremy Metz a74878c75b Updated exclude_border to not use min_distance 2016-02-19 15:36:12 +00:00
Johannes Schönberger 91ed378019 Fix bug in exclude_border option 2016-01-29 09:26:12 +01:00
Johannes Schönberger dfae40f9a8 Change default threshold_abs value to minimum image intensity 2016-01-29 09:26:12 +01:00
Johannes Schönberger bbb427b9ea Fix peak_local_max doctest 2016-01-29 09:26:12 +01:00
Johannes Schönberger 88ee3ce96e Raise error for invalid min_distance values 2016-01-29 09:26:12 +01:00
Johannes Schönberger 5751b0cb28 Some improvements to the doc string and code formatting 2016-01-29 09:26:12 +01:00
Johannes Schönberger fe9d7c73a1 Fix coordinate extraction 2016-01-29 09:26:12 +01:00
Antony Lee bd2ecff62f WIP: fix impl. of peak_local_max, update tests. 2016-01-29 09:26:12 +01:00
Antony Lee 58283e7bd5 Change default min_distance; improve docstring. 2016-01-29 09:26:12 +01:00
Antony Lee f3771aba7e Saner defaults for peak_local_max, untested.
First attempt at fixing #1246.
2016-01-29 09:26:12 +01:00
Victor Escorcia 7254c1e7b2 Fix output type of peak_local_max 2015-10-03 22:12:03 +03:00
kpk09 305f5fd225 Using numpy.argwhere makes code easier to read 2015-01-25 00:22:11 +00:00
kpk09 c5ac705123 Fixed bug in feature.peak_local_max: num_peaks should now be usable for ND arrays. 2015-01-25 00:19:12 +00:00
Stefan van der Walt 78a7b7307a Rename and deprecate filter module to prevent shadowing of built-in keyword 2014-11-10 12:53:50 +02:00
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