Commit Graph

85 Commits

Author SHA1 Message Date
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 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
Juan Nunez-Iglesias b0a822a9ac Use integer bins when histeq'ing int images 2014-12-15 12:54:22 +11:00
Juan Nunez-Iglesias 879f8bb8a8 Protect exposure.histogram from integer overflow
Fixes #1228 .

I also removed a min() calculation and prevented an image copy when
offset is 0, which is most of the time.
2014-11-24 23:59:43 +11:00
Rebecca 1b217f971e replacing lena in examples and most tests 2014-11-07 16:01:23 +02:00
Steven Silvester 2355c17e3c Add mask option to exposure.equalize_hist with test.
Remove print and fix comparision to None

Update test to make it clear there is a difference

Fix mask logic and `equalize_hist` in `__all__`.

Fix handling of mask and tweak mask test

Another run at travis

Update travis to avoid conflict
2014-08-31 21:15:01 -05:00
Tony S Yu d9a39d44eb Remove cast and rescale and adjust test values to match 2014-07-16 23:24:03 -05:00
Tony S Yu c24adec714 Add adapt_rgb decorator and helpers.
This applies `adapt_rgb` to `equalize_adapthist` and removes the
special-casing of RGB images in that function. Note that tests of
`adapt_rgb` fail because some type conversion and intensity scaling
were added to pass tests for `equalize_adapthist`.
2014-07-16 23:13:04 -05:00
blink1073 0392299fae Refactor to use np.pad, naming changes, update test. 2014-07-12 19:12:53 -05:00
blink1073 a924e55b52 Fix handling of border pixels and update tests 2014-07-12 19:12:53 -05:00
blink1073 2bdfcc7d5e Fix failing tests and turn module level testing back ony 2014-07-12 19:10:32 -05:00
blink1073 ba010a3191 Update adapthist tests, add test for alpha channel and rgb mode handling. 2014-07-12 19:10:32 -05:00
blink1073 95a208eec5 Add test for adapthist modes 2014-07-12 19:10:31 -05:00
Tony S Yu 879c2c7f36 Add tests for intensity_range and rename parameter 2014-07-11 16:30:18 -05:00
Johannes Schönberger 107f1d607c Move phase unwrapping algorithms to restoration submodule 2014-03-13 18:50:39 -04:00
Tony S Yu 28d6787a87 Add tests for uint12 and uint14 limits 2014-02-23 23:13:13 -06:00
Tony S Yu 7b104fdf14 Add string inputs for range parameters of rescale_intensity 2014-02-23 14:36:31 -06:00
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