M Clark
06f73d7611
labelplugin, images with multiple channels
...
This change lets label tool work with images that have multiple channels. Before this change we would a value error.
Test:
```
import skimage
from skimage.viewer import plugins
from skimage import data, viewer, transform, color
imdata = skimage.data.astronaut()
viewer = skimage.viewer.ImageViewer(imdata)
viewer+=skimage.viewer.plugins.LabelPainter()
viewer.show()
```
Previous error:
```
...skimage/viewer/canvastools/painttool.py in at(self, row, col)
188
189 def at(self, row, col):
--> 190 h, w = self.array_shape
191 r = self.radius
192 xmin = max(0, col - r)
ValueError: too many values to unpack (expected 2)
```
2016-08-15 14:33:39 +08:00
Juan Nunez-Iglesias
99136abfc6
Merge pull request #2242 from grlee77/wavelet_nd
...
add n-dimensional support to denoise_wavelet
2016-08-13 14:06:08 +10:00
Gregory R. Lee
721dd37eea
DOC: update plot_denoise example to use the multichannel argument in denoise_wavelet
2016-08-12 08:38:50 -04:00
Gregory R. Lee
48bfe20ed7
TST: add basic wavelet denoising tests for 1D through 4D inputs
2016-08-12 08:36:51 -04:00
Gregory R. Lee
87936c0b09
TST: compare PSNR in the wavelet denoising tests
2016-08-12 08:23:20 -04:00
Gregory R. Lee
72577e9764
FIX: correct channel range in the multichannel case
2016-08-11 10:52:37 -04:00
Gregory R. Lee
6f3520b83e
DOC: add missing multichannel info to the docstring
2016-08-11 10:51:58 -04:00
Gregory R. Lee
efb829f876
TST: update existing tests for wavelet_denoise
2016-08-10 18:45:39 -04:00
Gregory R. Lee
d4168b665e
MAINT: more memory efficient multichannel implementation
...
also make multichannel default to False to match other denoising routines
2016-08-10 18:37:23 -04:00
Gregory R. Lee
c83fe7d178
ENH: add nd support to denoise_wavelet
2016-08-10 18:37:23 -04:00
Juan Nunez-Iglesias
e691467590
Merge pull request #2227 from sciunto/test_seed_rank
...
TEST: define seed in setup() / Fix random test failure
2016-08-06 11:48:25 +10:00
Josh Warner
0ea2a3423b
Merge pull request #2190 from stsievert/wavelet-denoise-v2
...
ENH: Implements wavelet denoising (from #1833 )
2016-08-05 00:03:12 -05:00
Scott Sievert
13490a64ac
TST MAINT: more clearly represent energy in signal
...
TST: removes tests to particular image
2016-08-04 22:13:06 -05:00
Scott Sievert
ce3a3da595
adds to contributors.txt
2016-08-04 09:48:58 -05:00
Scott Sievert
222a1b3a78
MAINT: asserts image 2D or 3D, proper clipping
...
as well as DOC: clarify 2D/3D + rewrite notes for denoise_wavelet
2016-08-04 09:48:35 -05:00
Scott Sievert
7cbd2d36a4
MAINT: uses random_noise in examples
2016-08-03 15:03:11 -05:00
François Boulogne
76fdc9975a
Set up an image for parallel testing
2016-08-03 08:23:13 +02:00
François Boulogne
8930052c3d
Add precision to test_parallel docstring
2016-08-03 08:07:21 +02:00
Juan Nunez-Iglesias
0852e3b171
Merge pull request #2199 from sciunto/invert
...
NEW + DOC: image inversion
2016-08-03 00:15:05 +10:00
François Boulogne
f47a176846
Rename invert.py to _invert.py
2016-08-02 11:56:29 +02:00
François Boulogne
200f398094
Fix tests
2016-08-02 08:08:29 +02:00
François Boulogne
10293f8891
Call invert() in doc
2016-08-02 08:08:29 +02:00
François Boulogne
2f0b9ace09
Implement invert function
2016-08-02 08:08:29 +02:00
François Boulogne
bf5e6f7827
DOC: image inversion
2016-08-02 08:08:29 +02:00
Juan Nunez-Iglesias
a73d044d6c
Merge pull request #2230 from sciunto/release
...
Add task update version on wikipedia
2016-08-02 10:54:55 +10:00
François Boulogne
103a17384c
np.random.seed is not thread safe for test_parallel
2016-08-01 22:03:57 +02:00
François Boulogne
ff3eaf35f9
Add task update version on wikipedia
2016-08-01 21:40:49 +02:00
Scott Sievert
c6e5c70953
makes PyWavelets required
2016-08-01 09:45:48 -05:00
Scott Sievert
9616637fe6
MAINT: py27 compatibility (no splat in list for _wavelet_threshold)
...
MAINT: addresses blank lines, typos
2016-08-01 09:45:44 -05:00
François Boulogne
d4dbc598c8
TEST: define seed in setup()
2016-08-01 15:20:50 +02:00
Egor Panfilov
c0fdc9e6b0
Merge pull request #2185 from sciunto/captions
...
Improve docstrings for captions
2016-08-01 12:35:33 +03:00
Josh Warner
6f2eb20ce0
Merge pull request #2217 from soupault/fix_fblas
...
TST: Updated AppVeyor to use Conda, added msvc_runtime
2016-07-31 02:57:31 -05:00
Egor Panfilov
b2c9af2ab9
Merge pull request #2223 from jni/saltnpepper
...
Fix bug in salt and pepper noise
2016-07-29 23:12:18 +03:00
Juan Nunez-Iglesias
b02b2b16cd
Clarify that pepper noise can be signed
2016-07-28 09:29:24 +10:00
Josh Warner
49074a4a0f
Merge pull request #2052 from almarklein/mc_lewiner
...
FEAT: Lewiner marching cubes algorithm
2016-07-26 18:26:29 -05:00
Juan Nunez-Iglesias
2bb0def975
Remove obsolete comment
2016-07-27 09:14:53 +10:00
Almar Klein
7e71a8e042
MC: add comment about except
2016-07-26 22:22:35 +02:00
Juan Nunez-Iglesias
18f661902c
Update test tolerance to reflect changed probabilities
2016-07-27 01:01:24 +10:00
Juan Nunez-Iglesias
2bac24fdf4
Ensure probability of flipping pixels is correct
2016-07-27 00:34:54 +10:00
Almar Klein
7686105129
MC: python2 compat
2016-07-26 13:19:23 +02:00
Almar Klein
6d0d655121
MC: docs and example fixes
2016-07-26 11:41:26 +02:00
Juan Nunez-Iglesias
cc843d6f14
Add regression tests for S&P noise
2016-07-26 19:36:18 +10:00
Juan Nunez-Iglesias
db7e9c2b4a
Bug fix: correct pixel selection for s&p noise
2016-07-26 19:35:28 +10:00
Almar Klein
01a1e5e4b7
MC: small tweaks from reviewer comments
2016-07-26 11:31:48 +02:00
Almar Klein
a90f875d15
Rename MC algs to make lewiner the default
2016-07-25 12:26:28 +02:00
Almar Klein
dd6adf7b7c
MC:docs
2016-07-25 12:26:28 +02:00
Almar Klein
49237ff473
better testing for python 3+
2016-07-25 12:26:28 +02:00
Almar Klein
e47392af97
MC: docs
2016-07-25 12:26:28 +02:00
Almar Klein
f96e458624
MC: typed input arg
2016-07-25 12:26:28 +02:00
Almar Klein
9909cea01c
MC: Use memoryviews
2016-07-25 12:26:28 +02:00