Commit Graph

3615 Commits

Author SHA1 Message Date
Juan Nunez-Iglesias 1c116a9905 Add function to guesstimate number of spatial dimensions 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias e9c5f666ae Use educated guesses for presence of color channels in SLIC 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias e757b9ae06 Rename slic.py to avoid name conflicts 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 99f905bc54 Always convert image to float in [0, 1] 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 441f4029f6 PEP8 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 332ab0449b Improve PEP8 and Python 3 compliance
Thanks to @JDWarner and @ahojnnes for the input.
2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 5c4d0218ce bug fix: 3d test working 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 215439b43c Add 3D slic tests (gray not working yet) 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 57cc86d7c8 Bug fix: remove unnecessary __get__ in test_slic 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias e9aa78b937 Bug fix: don't add singleton dimension to 3D gray images 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 8e4ab32ed9 Bug fixes: concatenation order and shape assignments 2013-07-02 13:22:13 +02:00
Juan Nunez-Iglesias 6dc8e6300b Separate inner loop of SLIC computation 2013-07-02 13:22:12 +02:00
Juan Nunez-Iglesias 30636428db Add more descriptive error message to _prepare_colorarray 2013-07-02 13:22:12 +02:00
Juan Nunez-Iglesias 620210025f Modify SLIC to allow uneven step sizes 2013-07-02 13:22:12 +02:00
Juan Nunez-Iglesias bb8cfea8c6 Add function to calculate regularly-spaced grid in nD 2013-07-02 13:22:12 +02:00
Juan Nunez-Iglesias a2e32cc90c Add initial 3D modifications (not working) 2013-07-02 13:21:17 +02:00
Juan Nunez-Iglesias 0132998ca1 Make more colorconv functions 3D aware 2013-07-02 13:21:17 +02:00
Juan Nunez-Iglesias 19f264bc8b Make color functions used by SLIC 3D-aware 2013-07-02 13:21:16 +02:00
Johannes Schönberger 647aacb316 Merge pull request #625 from JDWarner/random_noise
FEAT: generator to add various types of random noise to images
2013-07-01 15:42:06 -07:00
Johannes Schönberger 6023b3a22f Merge pull request #617 from JDWarner/memview_transform
Use memoryviews in `skimage._shared.transform`
2013-06-30 22:01:15 -07:00
Johannes Schönberger bb6ea70563 Merge pull request #621 from tonysyu/fix/rank-dtype-compatibility
Fix rank dtype compatibility
2013-06-29 23:30:49 -07:00
Josh Warner (Mac) 5f7fc52830 FEAT: generator to add various types of random noise to images 2013-06-29 18:00:26 -05:00
Tony S Yu 63d13a0b69 Merge pull request #618 from mkcor/filter_canny_passingtype
Canny filter: You can pass an image of any dtype!
2013-06-29 15:38:59 -07:00
Marianne Corvellec 75b3fcd4dd Included Tony's edits. 2013-06-29 18:34:41 -04:00
Marianne Corvellec 5b3081ccc6 Always follow the style guide :) 2013-06-29 18:29:55 -04:00
Marianne Corvellec ee7f710e55 Improved style. 2013-06-29 18:11:36 -04:00
Marianne Corvellec 8f40e05aab Fixed relative threshold: you consider 10% and 20% of the max for range of
corresponding dtype.
2013-06-29 18:11:36 -04:00
Marianne Corvellec 94dc84f5b7 Clarified that you can pass images of any type into Canny filter.
If low and high thresholds are not specified by user, default to 10 and 20 %
(respectively) of range of image's dtype.
2013-06-29 18:11:36 -04:00
Tony S Yu fe4470e480 Merge pull request #615 from JDWarner/fix_lineprofile
Fix lineprofile viewer plugin
2013-06-29 14:13:34 -07:00
Josh Warner (Mac) 6f775400b5 FIX: No longer reset for each update 2013-06-29 15:34:03 -05:00
Josh Warner (Mac) 19a3d33573 FIX: only reset axes when gray <-> rgb, not every update 2013-06-29 15:18:53 -05:00
Josh Warner (Mac) b4e71ecd43 FIX: remove blit, fix 0-length error on grayscale images 2013-06-29 15:09:58 -05:00
Josh Warner (Mac) e790fcc44e FIX: lineprofile no longer flips on left half and cardinals work 2013-06-29 14:24:16 -05:00
Josh Warner (Mac) e20aa7c381 FIX: refactor code, fix linewidth calculation 2013-06-29 14:24:16 -05:00
Josh Warner (Mac) 2b5930ad60 DOC: Add viewer example for RGB line profile 2013-06-29 14:24:16 -05:00
Josh Warner (Mac) 9ece0b576c FEAT: Automatically switch between RGB / grayscale lineprofile 2013-06-29 14:24:15 -05:00
Tony S Yu d96411a743 Fix build script 2013-06-29 14:16:22 -05:00
Tony S Yu f92f057cbd Add support for all data types.
All dtypes larger than 8-bits are converted to uint16 and then bit-shifted to
uint12.
2013-06-29 14:16:22 -05:00
Tony S Yu 58a4a43f10 Change rank.pyx to _rank.py
- Cython was unnecessary in the main rank module
- Don't shadow package name in the module
- Add support for int8 images.
2013-06-29 14:16:22 -05:00
Tony S Yu f8f3cee20a Merge pull request #620 from scikit-image/2013
Python 3 support without 2to3.
2013-06-29 12:15:08 -07:00
Stefan van der Walt 9ed26136e2 Do not run flakes on test files -- we have too many custom formatted array. 2013-06-29 11:59:47 -05:00
Stefan van der Walt f429b5abad Ensure PIL tests run with PIL. 2013-06-29 11:01:18 -05:00
Tony S Yu 6cef8727a0 Minor fixes
- Use absolute imports so __main__ examples work
- PEP8: 2 blank lines
2013-06-29 10:56:03 -05:00
Stefan van der Walt 2566171929 Space code more readably in transform. 2013-06-29 10:55:34 -05:00
Stefan van der Walt 39e66c0229 Add to public API. 2013-06-29 10:18:43 -05:00
Stefan van der Walt 0286d2d30f Use int32 for labelling. 2013-06-29 10:17:42 -05:00
Stefan van der Walt f0506f1293 Fix imports under Python 3. 2013-06-29 10:17:42 -05:00
Stefan van der Walt 558298f426 Fix im_self access in Python 3. 2013-06-29 10:17:42 -05:00
Stefan van der Walt 9d1907a211 Fix im_class access in Python 3. 2013-06-29 10:17:42 -05:00
Adam Wisniewski 81519b7863 adding main to run tests 2013-06-29 10:17:41 -05:00