Commit Graph

67 Commits

Author SHA1 Message Date
Stefan van der Walt cff007827c Merge pull request #825 from ahojnnes/coverage
MRG: Increase test coverage
2013-12-03 00:29:15 -08:00
Johannes Schönberger 5b3c21a4d4 Add test for neggative gamma parameter 2013-11-22 12:33:21 +01:00
Johannes Schönberger 0a2ed35253 Add test for negative input image 2013-11-22 12:30:49 +01:00
Jostein Bø Fløystad 37b5a946c8 unwrap tests: PEP8 fixes. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad f53a4e0764 unwrap: Add naive 1D unwrapper.
The naive 1D unwrapper does not support masked arrays because the
1D unwrapping problem has an infite number of solutions when faced with
missing data. Wrap around is not implemented because 1D phase unwrapping
must start at a certain pixel, and there will always be a risk of a
discontinuity there, wrap around or not.
2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 27c13a1193 unwrap: Warn about singleton dimensions in 3D arrays. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 781ead2c9f unwrap: Rename function unwrap() -> unwrap_phase(). 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 9e50686c8f unwrap: Add test for unwrapping masked images. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 8a93677db0 unwrap: Delete "example" from the test file. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad c0d0984049 unwrap: Make sure test data wraps along all dimensions. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 619da811d8 unwrap: Reduce code duplication.
Use the yield functionality in nose to minimize setup.
2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad b0c21ea972 unwrap: Reduce duplication in tests. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 43d110627b unwrap: PEP8 fixes. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 6dbe6965e6 unwrap: Test wrap_around functionality.
This test is currently failing. Most likely, the axes are swapped.
2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad ac330662b9 unwrap: Remove unused imports 2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad 0e56ee9577 unwrap: Remove plotting code. 2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad e780bd7a5a unwrap: refactor tests.
Update imports to skimage
Use simple test functions, do not wrap in a class
Whitespace fixes
2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad 5692989a11 unwrap: Move files to skimage directory tree. 2013-11-22 10:42:28 +01:00
Ankit Agrawal f94f3db597 Renaming rescale_intensity_* as adjust_* 2013-06-06 12:13:48 +08:00
Ankit Agrawal 00ae241525 Error handling for images with negative values in Image Correction methods 2013-06-06 12:13:20 +08:00
Ankit Agrawal 23f61795eb Minor improvements in docs, tests 2013-06-06 12:12:40 +08:00
Ankit Agrawal a475d3c694 Corrections and Improvements 2013-06-06 12:12:40 +08:00
Ankit Agrawal a88ae64efb Added stronger tests 2013-06-06 12:11:53 +08:00
Ankit Agrawal e1c23ac08c Added better tests and removed weak ones 2013-06-06 12:11:53 +08:00
Ankit Agrawal 8f8c58317c Separating correction methods into different functions 2013-06-06 12:10:54 +08:00
Ankit Agrawal c1e8440f72 Prevented info loss, implemented Log and Sigmoid Correction 2013-06-06 12:03:28 +08:00
Ankit Agrawal 391b2edad6 Added a function for Gamma Correction 2013-06-06 11:55:21 +08:00
Emmanuelle Gouillart 182a194ecd DOC: Comment on the behavior of `histogram` for color images. 2013-04-28 18:22:01 +02:00
Steven Silvester f48f94f0be BUG: Adapthist interpolation grids could be improperly spaces 2012-12-28 18:37:15 -06:00
Steven Silvester 1af3d69cde BUG: Fixed another division error 2012-12-28 01:33:01 -06:00
Steven Silvester 8da3541bff STY: Minor change to docstring to test travis build 2012-12-26 09:11:53 -06:00
Steven Silvester 6a54c56900 STY: Change minor formatting to test travis build 2012-12-26 00:59:05 -06:00
Steven Silvester 5e44e78488 STY: Used float comparison in test_exposure 2012-12-26 00:45:41 -06:00
Steven Silvester a0a05954c2 BUG: Failed exposure tests on Python3, fixed 2012-12-26 00:34:17 -06:00
Steven Silvester aef305a0d3 BUG: Python 3 Travis build caught this error 2012-12-25 23:02:27 -06:00
Steven Silvester 6a0ab4e3fb BUG: Fixed exposure test to cast data on load. 2012-12-23 15:45:10 -06:00
Steven Silvester 1c589908a8 BUG: Not all plugins would pass the adapthist test 2012-12-23 10:54:09 -06:00
Steven Silvester 73f5e9dccc Fixed error in peak_snr, now uses float arithmetic throughout. 2012-12-11 23:14:30 -06:00
Steven Silvester 9adae8b0c2 Fixed last remaining sig figure problem. 2012-12-11 18:57:24 -06:00
Steven Silvester 0e34c91e37 Changed all test to use 3 significant digits. 2012-12-11 18:08:27 -06:00
Steven Silvester 5444867fd0 Removed explicit io_plugin from test 2012-12-10 20:38:42 -06:00
Steven Silvester bb4f2b96df Modified test to pass with matplotlib plugin. 2012-12-10 20:37:01 -06:00
Steven Silvester ac09463cf8 Fixed comment header in test file. 2012-12-10 20:19:23 -06:00
Steven Silvester 71f505f71c Used the new function names in example and test. 2012-12-08 15:03:11 -06:00
Steven Silvester 9ff0eef53d Merge branch 'adapthist' of github.com:blink1073/scikits-image into adapthist
* 'adapthist' of github.com:blink1073/scikits-image:
  Cleaned up adapthist func to use LAB for all RGB->required rest result change
  Removed sys.path hack in test, fixed spelling of import in __init__.py
  Translated clahe C code to python, added to list of contributors.
  Passed all tests with full coverage, PEP8 and Pylint performed.
  Improved support for color images using lab transform.
  Replaced generic ACM license with the Graphics Gems IV license.
  Pep8 fixes.
  Added Notes to the docstring.
  Tests pass and example works on build.
  Initial commit of adapthist modifications.

Conflicts:
	CONTRIBUTORS.txt
	doc/examples/plot_equalize.py
	skimage/exposure/_adapthist.py
	skimage/exposure/tests/test_exposure.py
	skimage/setup.py
2012-12-08 14:47:18 -06:00
Steven Silvester 08ef1e9b75 Rebased to master, incorporated view_as_blocks, cleaned up interpolate method and example 2012-12-08 14:29:36 -06:00
Steven Silvester b8844beb79 Cleaned up adapthist func to use LAB for all RGB->required rest result change 2012-12-07 17:25:07 -06:00
Steven Silvester 7f86b0c400 Removed sys.path hack in test, fixed spelling of import in __init__.py 2012-12-07 17:25:06 -06:00
Steven Silvester 94af01cdbd Translated clahe C code to python, added to list of contributors. 2012-12-07 17:25:04 -06:00
Steven Silvester 269929333b Passed all tests with full coverage, PEP8 and Pylint performed. 2012-12-07 17:23:40 -06:00