Commit Graph
76 Commits
Author SHA1 Message Date
Johannes Schönberger ca5de50079 Enforce integral type for label images 2015-09-03 16:22:32 -04:00
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
dan ff1322938e pep line width violation corrected 2015-05-21 07:58:56 +02:00
dan bcb5b34fef more formal documentation 2015-05-21 02:06:27 +02:00
dan 98c4e2366e ellipse documentation was corrected 2015-05-21 01:30:17 +02:00
Joel Frederico 575689baf2 Update measure.regionprops.weighted_moments_central doc
The documentation is misleading. In fact, the code does do what a user would expect: use the weighted centroid coordinates, not the centroid coordinates. It's one word, but it's an important one!

https://github.com/scikit-image/scikit-image/blob/master/skimage/measure/_regionprops.py#L291
2015-05-14 17:15:00 -07:00
Johannes Schönberger d3c4c704fe Speedup regionprops 2015-01-22 07:53:10 -05:00
Steven Silvester a4e4e57ba5 Create new expected_warnings helper and some cleanup
Add new helper function for expected warnings during test

Indentation cleanups and avoid skipping doctests if possible.
2014-12-23 16:50:18 -06:00
Steven Silvester 6db92d387b More doctest and pil_plugin fixes
Fix Python2 imread in pil_plugin.

Load from data

Use all_warnings when importing the other packages

More fixes for regionprops doctest
2014-12-23 16:49:38 -06:00
Steven Silvester 4680f30466 Add a test setup helper function
Add a function to set up a skimage test

Switch to new test helper function

Import local packages that raise warnings in test setup function

More fixes to doctests

Fix regionprops doc test

Try and fix the test_rank failure.

Remove no longer needed RectangleSelector shim

Skip more doctests in _regionprops

Try importing another scipy subpackage
2014-12-23 16:49:20 -06:00
Jacopo 77a78a287c Updated docs for regionprops to reflect the dropping of regions with label value 0 2014-12-03 11:09:46 +10:00
Johannes Schönberger fc0a6064d7 Use uint8 type for simple moments functions 2014-11-26 17:08:42 -05: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
Stefan van der Walt 135965fbe4 Avoid circular imports 2014-05-25 20:05:17 +02:00
Stefan van der Walt 1de102a885 Fix broken and circular imports 2014-05-09 02:53:57 +02:00
Stefan van der Walt 5ba3ea421c Fix imports and suppress deprecation warnings 2014-05-08 19:14:38 +02:00
Stefan van der Walt 0b6e48fe2a Clarify regionprops output 2014-05-08 10:45:04 +02:00
Johannes Schönberger 46b2bd5bb1 Remove print statement 2014-04-12 11:34:03 -04:00
Johannes Schönberger 6a0d81a047 Remove backwards-compatability of skimage.measure.regionprops 2014-04-11 10:06:59 -04:00
Vighnesh Birodkar e6ea9efa1c formatting, used assert_equals in test 2014-03-30 17:46:45 +05:30
Vighnesh Birodkar 764c59693c removed array cast, added not equals test 2014-03-28 00:12:18 +05:30
Vighnesh Birodkar 3f5b3892ed reverted irrelevant changes 2014-03-26 03:59:56 +05:30
Vighnesh Birodkar 1fc24294ff reverted irrelevant changes 2014-03-26 03:58:32 +05:30
Vighnesh Birodkar b0dbfffb45 reverted irrelevant changes 2014-03-26 03:56:40 +05:30
Vighnesh Birodkar dd8a14bf69 reverted irrelevant changes: 2014-03-26 03:55:22 +05:30
Vighnesh Birodkar ab06d0177b pep8 2014-03-26 03:51:59 +05:30
Vighnesh Birodkar ace11b852e added nan case 2014-03-26 03:50:24 +05:30
Vighnesh Birodkar a748df0b55 removed blankline 2014-03-26 02:59:59 +05:30
Vighnesh Birodkar 12ba5905a7 overrided __eq__ method of region props 2014-03-26 02:56:49 +05:30
Ankit Agrawal 292f9dce9b Fix regionprops doc typo 2014-02-12 19:17:54 +05:30
Johannes Schönberger 863e89ba41 Fix data type issue in python 3 2013-11-04 00:31:07 +01:00
Johannes Schönberger ad0347d929 Fix regionprops doctest 2013-11-03 23:48:13 +01:00
Jostein Bø Fløystad eff276c99b Bug: Fix label sequence in regionprops.
Closes gh-806.
2013-10-29 11:58:59 +01:00
Stefan van der Walt 14687d0510 Dictionary interface to preserve backward compatibility for RegionProps. 2013-10-17 13:07:41 +02:00
Johannes Schönberger 6711bfb3c8 Rename weighted central moments property 2013-10-15 15:12:00 +02:00
Johannes Schönberger 4e9cb03aeb Add missing perimeter function to __all__ 2013-10-11 17:37:26 +02:00
Johannes Schönberger f10c362b1a Fix euler number bug for scipy-0.13 2013-10-11 17:34:47 +02:00
Johannes Schönberger 78a849cc37 Fix dtype bug in perimeter 2013-10-02 14:16:24 +02:00
Johannes Schönberger d7824000fe Raise error for non 2-D images 2013-10-02 14:14:29 +02:00
Johannes Schönberger c1ea012c9b Add support for unsigned integer label images 2013-10-02 14:05:30 +02:00
Johannes Schönberger 99fb8b992e Some improvements for perimeter 2013-10-02 13:55:52 +02:00
Luis Pedro Coelho ff0b315110 RFCT Simpler code for initializing array
Also, replaced skimage.measures.histogram by np.bincount.

Both changes were suggested in the pull request discussion by Juan
Nunez-Iglesias (jni):

https://github.com/scikit-image/scikit-image/pull/746
2013-10-01 15:19:42 +02:00
Luis Pedro Coelho f81fbf5b25 ENH Faster perimeter computation
Measured a 30% speedup on a 640x640 image. Fundamentally, this makes
fewer passes over the image; so it should never be worse that the
previous implementation.
2013-10-01 13:07:17 +02:00
Johannes Schönberger cc91324625 Fix PEP8 issues and typos 2013-08-17 21:44:07 +02:00
Johannes Schönberger c4caf8b7b8 Sort functions in alphabetical order 2013-08-17 18:04:07 +02:00
Johannes Schönberger 13957123b7 Make moments functions public, rename, add tests 2013-08-17 18:00:53 +02:00
Johannes Schönberger 752e395835 Improve moments code and use typed memoryviews 2013-08-17 15:51:15 +02:00
Johannes Schönberger f019ed1fed Fix missing label property description and backwards compatibility 2013-08-13 15:08:50 +02:00
Johannes Schönberger 4f8d4ce3f2 Hide cached_property and caching flag 2013-08-07 20:06:33 +02:00
Johannes Schönberger fea0c3f56c Improve fromatting of regionprops doc string 2013-08-07 20:04:19 +02:00