Commit Graph

252 Commits

Author SHA1 Message Date
blink1073 caaf75ebd1 Fix failing doctests 2014-07-19 19:16:46 -05:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Charles Harris 7a074d5dd1 BUG: Fix slicing error revealed by numpy 1.9.0.
Numpy 1.9.0 no longer allows oversize data to be assigned to a
boolean indexed 1-d array by discarding excess elements.

Closes #1050.
2014-07-04 20:12:46 -06:00
Johannes L. Schönberger 6546b9dba4 Merge pull request #1007 from stefanv/label_refactor
Move `morphology.label` to `measure.label` and prepare for 0-label transition
2014-05-25 21:56:42 -04:00
Josh Warner (Mac) 3fab7c0057 Remove incorrect np.round statement (directly cast m) 2014-05-08 18:54:52 -05:00
Stefan van der Walt 46829c6a33 Move implementation of label to measure submodule 2014-05-08 18:04:03 +02:00
Josh Warner (Mac) 26793068b1 Fix documentation, handle internal variable more efficiently. 2014-05-08 02:32:39 -05:00
Josh Warner (Mac) 069cba50ef FIX: Address non-int DeprecationWarning from NumPy 2014-05-07 23:54:17 -05:00
Josh Warner (Mac) 4aa162fc78 FIX: Remove unnecessary .transpose introduced in PR #984 2014-05-07 22:10:27 -05:00
Josh Warner (Mac) 0d775c3aab Remove check for non-numeric values in spacing. 2014-05-07 02:42:38 -05:00
Josh Warner (Mac) 0ac86b3e96 STY: More elegant and maintainable style per code review 2014-05-06 02:16:45 -05:00
Josh Warner (Mac) 88f08ebea2 TST: Add unit test for length-2 spacing with rank-2 input 2014-04-19 11:40:16 -05:00
Josh Warner (Mac) 7847287f46 FIX: Shortcut output or catch trivial cases in random_walker
Also:
* New tests to cover these new checks
* Improvements to docstrings and user warnings
* Generalize handling of `sampling` in accordance with docstring
* Some extra whitespace to improve readability
2014-04-18 18:47:20 -05:00
Josh Warner (Mac) 7161175e43 DOC: Clarify UMFPACK warning; use if statements instead of assert 2014-04-18 16:52:19 -05:00
Johannes Schönberger 44f3e1b136 Remove deprecated skimage.segmentation.visualize_boundaries 2014-04-11 10:05:51 -04:00
Juan Nunez-Iglesias 18ce9d2b95 Remove depth from random_walker tests 2014-04-09 23:44:34 +10:00
Juan Nunez-Iglesias 264ca6ebd9 Remove deprecated depth parameter in random_walker
This has been supplanted by the `spacing` parameter.
2014-04-09 23:41:37 +10:00
Juan Nunez-Iglesias 0af070b92f Change default mode cascade in random_walker seg 2014-04-09 23:35:42 +10:00
Juan Nunez-Iglesias dcd822bf48 Remove deprecated sigma default warning in SLIC 2014-04-09 17:57:06 +10:00
Juan Nunez-Iglesias 9510c03ce5 Remove deprecated ratio keyword in SLIC 2014-04-09 17:55:35 +10:00
cgohlke 2a930700d5 Fix ValueError: Buffer dtype mismatch, expected 'Py_ssize_t' but got 'long' on win-amd64 2014-03-10 20:51:43 -07:00
Michal Romaniuk ee3ca829c6 Added a test for slic_zero and some other changes based on feedback from Github. 2014-01-26 18:01:59 +00:00
Michal Romaniuk 0c4adddf81 Some changes based on feedback from discussion on Github. 2014-01-22 19:25:18 +00:00
Michal Romaniuk 131dea07a0 Merged the separate loops for SLIC-zero and SLIC into one, and some minor improvements based on feedback on Github. 2014-01-21 20:08:07 +00:00
Michal Romaniuk b4ac25200b Bug fix: removed temporary debug code 2014-01-21 19:45:08 +00:00
Michal Romaniuk 0bd1d4490e Added SLIC-zero to SLIC and changed SLIC implementation slightly 2014-01-21 19:45:08 +00:00
Guillem Palou Visa 15c2989158 Added deprecation warning 2014-01-17 16:52:44 +01:00
Guillem Palou Visa f461d76004 Fixed minor documentation issues 2014-01-12 17:03:10 +00:00
Guillem Palou Visa 4982b00f0c Labels start at 0, for backward compatibility
Code is PEP8 compliant
2013-12-24 18:45:55 +01:00
Guillem Palou Visa 9178e77aef Changed variable names for readbility, fixed PEP8 compliance 2013-12-24 13:25:48 +01:00
Guillem Palou Visa a50b05eeb8 Fixing some code, minor revision 2013-12-24 12:00:21 +01:00
Guillem Palou Visa 08dc3a33d0 Changed coding style to be compliant with PEP8 2013-12-24 11:35:21 +01:00
Guillem Palou 53a4388e26 Changed tests to begin segment label at 1 instead of 0 2013-12-23 14:44:23 +01:00
Guillem Palou e68ab76b24 Added max_size as a parameter 2013-12-23 01:17:51 +01:00
Guillem Palou 0d6540a82c Changed SLIC superpixels so that connectivity is enforced optionally.
A separate, private function is created that implements the postprocessing step
2013-12-23 00:49:06 +01:00
Guillem Palou 8db9096b20 Enforce SLIC superpixels connectivity 2013-12-20 09:18:14 +01:00
Johannes Schönberger 4033566ae6 Add test for invalid parameter combination 2013-11-22 12:22:10 +01:00
Johannes Schönberger e74db662cb Add test case for *_boundaries functions 2013-11-21 23:58:39 +01:00
Johannes Schönberger b4c190e560 Explicitly set sigma value to 0 to avoid warning 2013-11-12 08:27:14 +01:00
Johannes Schönberger 7f27d5bffb Fix label2rgb bug 2013-11-09 22:04:28 +01:00
Johannes Schönberger 615866ae16 Cast label_field to integer dtype for float intput 2013-11-09 21:56:18 +01:00
Andreas Mueller 96f04ad530 slight performance improvement. 2013-10-20 15:15:55 -07:00
Andreas Mueller 57e37352cb FIX add missing min_size parameter, add regression test. 2013-10-20 15:15:36 -07:00
François Boulogne eb4c5c9ee4 PEP8 2013-10-14 16:14:30 +02:00
Josh Warner (Mac) 961c47e801 DOC: Fix minor typo in docstring 2013-10-13 12:40:00 -05:00
Josh Warner (Mac) 927ba2cd8e FIX: roll back incorrect testing change of gradient order 2013-10-13 12:39:13 -05:00
Josh Warner (Mac) f25ca3a835 ENH: spacing kwarg for random_walker and improved tests 2013-10-13 12:39:13 -05:00
Josh Warner (Mac) e5e1918a2b REBASE: Resolve first conflict 2013-10-13 12:38:35 -05:00
Stefan van der Walt dca255648f Merge pull request #759 from jni/supress-umf
Suppress error message during failed UmfpackContext import.
2013-10-11 09:57:30 -07:00
Juan Nunez-Iglesias bfaf89e2f3 Deprecate default mode 'bf' in random_walker 2013-10-08 13:23:50 +11:00