34 Commits

Author SHA1 Message Date
Juan Nunez-Iglesias 0d134987f9 Harmonize all ndimage usage across the library
Only two forms remain in use:

- `from scipy import ndimage as ndi`
- `from scipy.ndimage import function`
2015-06-09 15:18:37 +10:00
Juan Nunez-Iglesias 7935e51596 Clarify and fix docstrings 2015-01-22 11:38:37 +11:00
Juan Nunez-Iglesias 97770e9fa5 Minor update to binary morphology docstrings 2015-01-22 11:29:09 +11:00
Juan Nunez-Iglesias 8ffed5e424 Wrap scipy.ndimage binary morphology functions 2015-01-22 11:29:08 +11:00
Pratap Vardhan 8f7d9d69fe CLN: Remove unused import and add module docstring 2014-12-11 20:17:29 +05:30
Nelson Brown 001a63bd21 Remove repeated comments 2014-07-15 08:03:31 -07:00
Nelson Brown a1519a015e Change binary morphology functions to output numpy.bool dtype 2014-07-13 19:59:43 -07:00
Nelson Brown f1a8132fbf Add doctrings and comments in response to reviewers 2014-07-13 11:28:27 -07:00
Nelson Brown 2b91c259d6 Add fallback decorator for 3D images
We don't support images greater than 2D, so fall back on ndimage
2014-07-12 15:22:48 -07:00
Nelson Brown 9cd9a1372a Address reviewer comments
Add newline at EOF of selem.py
Add "optional" to grey.py and binary.py
2014-07-11 15:19:33 -07:00
Nelson Brown 1ef556b710 Remove unnecessary whitespace 2014-07-11 14:51:57 -07:00
Nelson Brown 54aff88bd0 Add docstring for default structuring element 2014-07-11 14:10:18 -07:00
Nelson Brown bb732c9225 Add default structuring element to morphology 2014-07-11 13:50:55 -07:00
Johannes Schönberger 2bf47ada90 Change data type of convolution to more general uint 2013-10-15 18:11:03 +02:00
Johannes Schönberger 505467008d Fix dtype error on 32bit systems as convolve is only implemented for 32bit integers 2013-10-15 15:49:10 +02:00
Stefan van der Walt d182286e53 Always use uint8 for binary view. 2013-10-14 16:41:08 +02:00
Stefan van der Walt f83c7a95e3 Tweak markup of docstring. 2013-10-14 13:58:04 +02:00
Stefan van der Walt 2a944ef689 Update docs to match output. 2013-10-14 13:11:51 +02:00
Stefan van der Walt d5e2ab0b13 Allocate less memory, if possible. 2013-10-14 13:02:38 +02:00
Stefan van der Walt 89d703ca46 Pre-allocate memory for convolution and re-use for output, if no user-override specified. 2013-10-14 12:58:27 +02:00
Stefan van der Walt 6111831994 Revert to >0 for determining binary values. Document that input should be binary. 2013-10-12 21:55:13 +02:00
Stefan van der Walt 9329d0ad56 Restore @ahojnnes's overflow test. Correctly assign out argument. 2013-10-12 19:44:14 +02:00
Stefan van der Walt 9ff4316cbb Fix overflow in NumPy 1.7 as suggested by Julian Taylor. 2013-10-12 19:23:54 +02:00
Stefan van der Walt b022dd6dfb Simplify output handling for binary morphology. 2013-10-12 19:10:23 +02:00
Johannes Schönberger f8d34e8bf9 Deprecate out parameter 2013-10-11 19:05:18 +02:00
Johannes Schönberger b187144a5f Add support older numpy versions 2013-10-11 19:04:42 +02:00
Johannes Schönberger 2a84e45389 Remove unused import 2013-10-11 19:04:42 +02:00
Johannes Schönberger ecf10a7a48 Reduce number of specializations 2013-10-11 19:04:42 +02:00
Johannes Schönberger 95a5a98c93 Fix overflow error 2013-10-11 19:04:42 +02:00
Johannes Schönberger 6a8889d0b0 Fix numpy 1.8 bug 2013-10-11 19:04:41 +02:00
Johannes Schönberger f478b6a397 Fix bug in binary dilation and test case 2012-09-11 20:11:55 +02:00
Johannes Schönberger aa08e8a559 Fix for predefined output array 2012-09-02 13:41:25 +02:00
Johannes Schönberger 2c37c70ca3 Fix support for predefined output array 2012-09-02 13:35:12 +02:00
Johannes Schönberger de47332bd2 Add fast morphological operations for binary images 2012-09-02 13:25:52 +02:00