106 Commits

Author SHA1 Message Date
François Boulogne 749f5876ce Fix catched warning 2016-07-17 19:45:31 +02:00
François Boulogne 7960d296dd Clean up 2016-07-17 19:12:05 +02:00
François Boulogne b7216a2dff Use our internal warning context manager 2016-07-17 19:11:02 +02:00
François Boulogne 754c652ebd One liner docstring 2016-07-17 19:06:55 +02:00
François Boulogne 26fd360ee1 MAINT: Remove deprecated Lena 2016-07-17 19:06:31 +02:00
François Boulogne 449bd445fc Add RGBA image 2016-07-17 14:13:24 +02:00
François Boulogne f292717dac Add option as_grey to load() 2016-07-17 14:13:23 +02:00
François Boulogne 6685651da5 Add missing unittests for data and convert horse to binary 2016-07-17 14:13:23 +02:00
François Boulogne 41e9c8d91a DOC: explicit default value behavior 2016-06-12 21:00:07 +02:00
Stefan van der Walt 89136157bb Remove lena image from test suite.
Results from the morphology module were compared against output from the
corresponding MATLAB functions, as applied to the lena test image.  This image
does not conform to the Debian Free Software Guidelines and had to be removed.
The output is now tested against results generated with the current version of
scikit-image (0.12.0), which is known to be correct due to the comparison
described above.
2016-03-06 23:16:11 -08:00
Evgeni Burovski dc702a83ee TST: skel3d: redo 3D test images
Remove ad-hoc images from morphology/tests/data folder.
Add a FIJI generated image to skimage/data.

The image was generated via
>>> img = binary_blobs(32, 0.05, n_dim=3, seed=1234)
>>> img = img.astype(np.uint8)*255
>>> img = img[:-2, ...]

then saved as a sequence of png frames, read into FIJI as an image sequence,
and skeletonized via Plugins -> Skeletonize (2D/3D).
2016-02-20 17:29:13 +00:00
Himanshu Mishra 421ef45b42 Use astronaut image instead of lena in test_hog.py 2016-01-14 23:42:52 +05:30
Sergio Pascual 49eb2f3a54 Suggest 'skimage.data.astronaut' as alternative test image 2016-01-13 11:10:13 +01:00
Sergio Pascual c6c8ff9359 Add deprecation warning to 'data.lena()' 2016-01-08 00:05:45 +01:00
Emmanuelle Gouillart f0eec46e5c Merge pull request #1783 from ivoflipse/fix_hog
Fixing Cythonized version of HOG
2015-12-19 17:37:24 +01:00
Warren Weckesser 6b908c1bb1 BUG: io: imread in the PIL plugin drops indexed PNG alpha channel.
When using the PIL plugin to read an indexed PNG file that has
an alpha channel, the alpha channel would be lost.
2015-12-15 12:30:43 -05:00
Guillaume Lemaitre 4bc1c587ed Add local geometric mean filter
Add the filter in cython with a specific kernnel.
The implementatio is based on the log-average method.
The test were added the npz.
2015-12-04 19:26:37 +01:00
Korijn van Golen c095daa234 Added unit test to check correct output of HOG on Lena grayscale image, and added feature_vector parameter to disable the .ravel() call on the result. 2015-12-04 10:42:12 +01:00
sumitbinnani 811b6895cf Refactoring ``skimage.filters.gabor_filter` to `skimage.filters.gabor``
Refactoring ```skimage.filters.gaussian_filter``` to ```skimage.filters.gaussian```
2015-10-04 00:15:53 +05:30
Steven Silvester 09c8a84a54 Merge pull request #1518 from stefanv/relative_imports
Consistently use relative imports
2015-07-12 14:41:06 -05:00
Jonathan Helmus c63adf5254 TST: Remove no_time_for_that.gif from data 2015-07-11 15:46:34 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Jonathan Helmus a47a700fe7 TST: Faster test_multi_image unit tests.
Unit tests in test_multi_image speed up by using a smaller gif file.

New file no_time_for_that_tiny.gif file created using:
gifsicle --resize 14x25 no_time_for_that.gif > no_time_for_that_tiny.gif
2015-07-11 12:35:03 -05:00
Josh Warner 7a2b0a70f5 Merge pull request #1459 from vighneshbirodkar/seam_carving
FEAT: Seam Carving
2015-06-18 12:32:19 -05:00
Vighnesh Birodkar e247e3bacc Precomputation optimizations and docstring changes 2015-06-15 20:19:52 +05:30
Vighnesh Birodkar 17dc213477 pep8 changes 2015-06-11 00:26:57 +05:30
Vighnesh Birodkar 1e49f49846 Added rocket image 2015-06-11 00:14:39 +05:30
Stefan van der Walt 07f95e400f Merge pull request #1511 from grlee77/ssim_ndim
ENH: structural_similarity: n-dimensional and multichannel support
2015-05-19 19:04:23 -07:00
Gregory R. Lee 49a1060719 update structural similarity to nD implementation with gaussian weighting to match other reference implementations 2015-05-15 13:42:06 -04:00
Juan Nunez-Iglesias a74ba0ec54 Merge pull request #1502 from blink1073/test-mulitpage-rgb-tiff
Add Test for Multipage RGB TIFF
2015-05-13 13:46:06 +10:00
emmanuelle 1ef90468e0 Modified (again) test accuracy. 2015-05-11 22:58:16 +02:00
emmanuelle e751d245f3 Modified test with a less stringent condition on numerical value for the
mean value of blobs image.
2015-05-10 23:29:54 +02:00
Steven Silvester 883baa0328 Add a multi-page rbg tiff file 2015-05-09 09:10:34 -05:00
emmanuelle 073c9735dc Fixed example in doctest. 2015-05-09 14:51:41 +02:00
emmanuelle 1c3af75dd3 Addressed a few minor issues raised by Juan and Stefan. 2015-05-09 10:23:49 +02:00
emmanuelle a615623643 Added function to generate binary image with rounded (blob-like) objects. 2015-05-01 19:28:56 +02:00
Johannes Schönberger 2d7cebbe5f Resolve incorrect rebase 2015-01-22 07:36:48 -05:00
Johannes Schönberger ee5c6fbeb2 Use relative imports in skimage files 2015-01-22 07:36:48 -05:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -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
Steven Silvester f72882fbd2 Import scipy before turning on warnings 2014-12-23 16:49:19 -06:00
Steven Silvester 2756358f3c Clean up PIL plugin and handle more warnings
Use the pil plugin to load data files

Fix install_requires string formatting

Dead end commit

Make all tools executable

Remove debug print

Suppress PIL resourcewarnings

Handle a few more warnings
2014-12-23 16:48:38 -06:00
Steven Silvester 874d68ba3f # This is a combination of 7 commits.
# The first commit's message is:
Add a known_warning decorator and suppress warnings in color pkg

# This is the 2nd commit message:

Use the existing all_warnings context manager

# This is the 3rd commit message:

Raise warnings in data

# This is the 4th commit message:

Raise warnings in draw

# This is the 5th commit message:

Raise warnings in exposure

# This is the 6th commit message:

Suppress warnings in exposure tests

# This is the 7th commit message:

Add comments about warning suppressions
2014-12-23 16:46:24 -06:00
Johannes Schönberger 3a1079a180 Misc PEP8 fixes 2014-12-14 02:56:14 +01:00
Johannes Schönberger cf499bf844 Add tests for all rank filters and reformat code 2014-12-13 11:25:59 +01:00
Rebecca fc18fb7ffa removed lena reference 2014-11-07 16:04:53 +02:00
Rebecca 1b217f971e replacing lena in examples and most tests 2014-11-07 16:01:23 +02:00
Steven Silvester 945e163867 Add animated gif, a test for it, and tests without conserve_memory.
Add animated gif, and a test for it, plus tests without conserve_memory

Add the gif file
2014-11-07 15:22:18 +02:00
Kevin Murray d69cdb951b [freeimage tests] Add a test w/ truncated image
This tests tests the fix in the previous commit b9a7445, covering the
issue noted in issue #1037.
2014-06-30 14:45:51 +10:00