Commit Graph

1937 Commits

Author SHA1 Message Date
Josh Warner (Mac) 32f39eecbb ENH: Improve random_noise with better param names & docfixes 2013-07-03 23:54:26 -05: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
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
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) 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
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
Adam Wisniewski 227b209720 fix arraypad 2013-06-29 10:17:41 -05:00
Stefan van der Walt eb66e34351 Fix label casting for numpy 1.7. 2013-06-29 10:17:41 -05:00
Stefan van der Walt 504ad94dc6 Fix iterator. 2013-06-29 10:17:41 -05:00
Stefan van der Walt 84615478e4 Fix function code. 2013-06-29 10:17:41 -05:00
Stefan van der Walt b04c3282bf Fix zip. 2013-06-29 10:17:41 -05:00
Stefan van der Walt a1adfa8d54 Correctly check for string type. 2013-06-29 10:17:41 -05:00
Stefan van der Walt 9a38a59a25 Remove is_str and replace by isinstance(..., six.string_types). 2013-06-29 10:16:42 -05:00
Stefan van der Walt 70d21f23a2 Add six compatibility module. 2013-06-29 10:16:42 -05:00
Josh Warner (Mac) c18373f3ad Use memoryviews in skimage.transform 2013-06-28 17:53:14 -05:00
Tony S Yu c61e0434e4 Merge pull request #613 from adamw523/master
support for saving to file-like object in imsave
2013-06-28 14:47:26 -07:00
Tony S Yu 397e7c1ade Clean up test. 2013-06-28 16:08:11 -05:00
Adam Wisniewski 362d915399 support for saving to file-like object in imsave 2013-06-28 16:18:01 -04:00
Davin Potts 0586817962 Modified test_rank.test_compare_autolevels and test_rank.test_compare_8bit_vs_16bit to correct for assumption that data.camera() would always be loaded as ubyte (or ints at least) when using matplotlib as backend (which caused data.camera() to load as float32). 2013-06-28 12:17:28 -05:00
Josh Warner 173fec01c7 Merge pull request #575 from tonysyu/feature/viewer-linking
Linked image viewers and docked plugins
2013-06-28 08:32:34 -07:00
Josh Warner (Mac) 82c987cb15 FIX: prepend np.testing. to assert_* statements
Resolve a simple namespace problem, eliminating 15 errors in
tests Travis doesn't catch because Travis doesn't build SimpleITK
2013-06-27 15:13:21 -05:00
tonysyu c826935d9e Change default Slider update_on value to 'release'
Image filtering is usually slow, so updating on move was usually a bad idea.
2013-06-26 11:23:12 -05:00
tonysyu ed7c75d4c6 Raise ImageViewer to front on start.
Currently only works for main window, does not work for linked viewers.
2013-06-26 11:00:24 -05:00
Tony S Yu cae693cb69 Change QApp default to previous behavior. 2013-06-25 23:24:06 -05:00
Tony S Yu dae0156230 Make histogram threshold adjustable 2013-06-25 23:20:12 -05:00
Tony S Yu e305677de5 Fix PyQt4 segfault caused by PySide fix.
I guess PySide saves the QApplication internally, while PyQt4 doesn't.
Saving the QApplication as a global prevents it from getting garbage
collected. Saving the QApplication as an instance variable in the
ImageViewer also works, but that might prevent the ImageViewer from getting
garbage collected in an interactive session. (weakref doesn't seem to work here.)
2013-06-25 23:15:42 -05:00
tonysyu c4299c4637 Fix execution in IPython with qt backend.
New QApplication and event-loop implementation stolen shamelessly from
IPython. Strangely, running the viewer at the IPython prompt will
open an orphan Matplotlib figure window, but running a script using
`%run` does not.

Only tested on PySide (not PyQt4).
2013-06-25 14:37:01 -05:00
Johannes Schönberger c9b2bd0aae Fix division by zero bug in corner detectors 2013-06-23 23:39:20 +02:00