Commit Graph

68 Commits

Author SHA1 Message Date
John Wiggins 6e6d243dbd Use assert_raises instead of @raises. 2015-08-28 21:19:20 +02:00
John Wiggins a0fc75c7cb Don't use two lines to raise an exception with a short message. 2015-08-28 21:10:39 +02:00
John Wiggins c05108da36 Replace a doc test with some regular unit tests. 2015-08-28 21:03:01 +02:00
John Wiggins ff4e3bd0bd Raise an error for negative sigma values in guassian_filter. 2015-08-28 20:37:26 +02:00
Johannes Schönberger 236aa208fe Merge pull request #1583 from grlee77/fix_interp_modes
FIX:  bug in 'reflect' and 'wrap' coordinate mapping
2015-08-20 18:53:11 -04:00
Gregory R. Lee 9e9c65b97c ENH: add mode 'mirror' to interpolation.pxd and dependent functions 2015-08-13 23:39:54 -04:00
Josh Warner (Mac) b35215ec6b TSTFIX: Missing assert statement and PEP8 2015-08-01 00:28:35 -05:00
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 ba65c3562b TST: smaller arrays for bit comparison in test_rank for speed 2015-07-11 17:46:17 -05:00
Jonathan Helmus 2353113e49 TST: Smaller data array in 12-bit entropy test for speed 2015-07-11 17:34:28 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
François Boulogne 6f1e84de95 attempt to fix #1567
add asseert_ND=2 to all threshold functions

Simpler writing, less cases

Fix variable name
2015-06-25 05:11:21 -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
Johannes Schönberger aa38f2485b Do not acquire GIL for rank filters 2015-05-20 07:26:24 -07:00
Johannes Schönberger a7c0b11eda Do not acquire GIL for median_filter 2015-05-20 07:10:51 -07:00
arve0 0eb7d132d3 pop_bilateral docstring: the->pixels 2015-05-12 15:30:14 +02:00
Jeremy Metz 28d0691d9e Minor modification to docstring 2015-02-24 12:39:09 +00:00
Jeremy Metz 09bb2c319c Moved contribution statement to CONTRIBUTORS.txt
* Amended docstring
2015-02-24 10:23:47 +00:00
Jeremy Metz 2bc9e82465 Minor stylistic changes, removed lena test 2015-02-23 16:40:38 +00:00
Jeremy Metz 3cbae84360 PEP8 fixes, License file added, tests added
* Added 7 tests (3 in TestSimpleImage, 4 as separate functions)
* Added ImageJ license file
* Updated Li code
  * threshold set from image instead of fixed at 0.5
  * subtract min to handle -ve images (as log is integral part of alg.)
2015-02-23 11:22:12 +00:00
Jeremy Metz 5eef38bba5 Removed nbins input (from use with histogram input) 2015-02-17 14:55:27 +00:00
Jeremy Metz 979d7515f0 Cleaned up comments, removed unnecessary vars 2015-02-17 14:45:31 +00:00
Jeremy Metz 2970de33ee Initial draft of Li thresholding (comments left in) 2015-02-17 14:36:58 +00:00
Steven Silvester 73aa5a22ba Remove citations in first line of docstring 2015-02-07 19:29:50 -06:00
Steven Silvester 5ccdd36bc3 Remove imshow from PIL plugin
Do not provide imshow, show in PIL plugin to prevent conflicts

Make the sphinx install quiet

Fix local linka

Fix literal blocks

Fix another local link

Fix richardson-lucy link

Assert world dominance
2015-02-07 16:40:44 -06:00
Steven Silvester be7154f23d Skip build on 3.2
Skip doc build on 3.2

Skip doc build on 3.2

Use block literal

Fix html make target

Revert change to threshold_isodata

Fix skimage.novice and thresholding warnings

Fix feature.__init__ __all__

Fix generic.py link

Doc reference fixes

Fix missing class member warnings

Add parallelization to the user guide toc

Remove unused automodule directives

Fix sub_dirs in gallery_index

Remove unused file and fix reference to api/api

Add missing links to user guide

Use pre-output links to images

Recover from Juan's doc 'upgrades'
2015-02-07 16:40:37 -06:00
Steven Silvester 09876408fc Fix some sphinx warnings and add to build
Fix some sphinx warnings

Add documentation build to test

Add documentation build to test

Remove change in numpydoc

Remove change in apigen

Add makefile target for html and add to travis script

Add a makefile target for html and add to travis script

Fix more sphinx warnings
2015-02-07 16:40:26 -06:00
Steven Silvester f4970f9707 Fix canny import test 2015-02-03 21:47:56 -06:00
Steven Silvester d070b2df4d Add an explicit test for canny deprecation 2015-02-03 21:39:23 -06:00
Steven Silvester 69c0fd5e46 Give an alternate canny location 2015-02-03 21:34:25 -06:00
Steven Silvester 85a68cff28 Cannot use bare deprecated decorator 2015-02-03 21:10:30 -06:00
Johannes Schönberger ee5c6fbeb2 Use relative imports in skimage files 2015-01-22 07:36:48 -05:00
Juan Nunez-Iglesias 1847b18fbb Test symmetric selems for rank/morpho comparison
The handling of eccentric selems is different between these two
modules, so the results are not expected to agree. (Why they agreed
before this change is beyond me.)
2015-01-22 18:30:10 +11:00
Juan Nunez-Iglesias ea989e2456 Fix a few typos 2015-01-22 11:38:37 +11:00
Juan Nunez-Iglesias 1439341461 Remove unused cmorph extension
The C morphology module has been superseded by wrapping scipy.ndimage.
2015-01-22 11:38:37 +11:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester d37ccca598 Fix Py2.7 build errors 2014-12-24 06:54:56 -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 1b905d4cef More cleanup and updating of tests
Clean up setup_test and add a teardown_test method

Implement new setup/teardown in novice tests

Fix warning handling in pil_plugin

Update rank tests
2014-12-23 16:50:50 -06:00
Steven Silvester 782ba46a4c Handle more warnings
Punt on the issue of warnings with the minimum build

Handle warnings in measure pkg

Fix the rank filter test by forcing a random seed in the function

Compare as boolean in imread test

Import loadmat in test_setup to avoid warning

Use a setup method for imread plugin test

Revoke unintended changes

Fix indentation to appease jni

More indentation fixes

Fix unintentional comment out
2014-12-23 16:49:59 -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 542cd4fabe Fix some doctest warnings
Fix doctest errors

Suppress warnings when importing scipy.ndimage for the first time
2014-12-23 16:49:01 -06:00
Steven Silvester 9e8f91930e Handle warnings in several packages
Start handling warnings in data, exposure, and draw

Add a known_warning decorator and suppress warnings in color pkg

Use the existing all_warnings context manager

Raise warnings in data

Raise warnings in draw

Raise warnings in exposure

Suppress warnings in exposure tests

Add comments about warning suppressions

Raise warnings in feature

Fix warnings in filter package

Add warning handling to graph

Handle warnings in io package
2014-12-23 16:47:41 -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
Johannes Schönberger bbd9828234 Wrap code at 80 2014-12-06 10:19:23 -05:00
Johannes Schönberger 37560287a9 Fix rank filter kernels 2014-12-05 21:56:01 -05:00
Stefan van der Walt b9a71663af Merge pull request #1247 from emmanuelle/gallery_edges
Add a second example to the edge filtering gallery example
2014-12-03 19:28:04 +02:00
emmanuelle d78c9aab08 Completed docstrings for the different edge filters. 2014-12-01 22:22:07 +01:00