Commit Graph

67 Commits

Author SHA1 Message Date
Stefan van der Walt 8cb409bcb0 Add alpha layer support to gray2rgb 2015-08-21 15:36:23 -07:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Steven Silvester 371d46ecf5 Remove unnecessary option and update test 2015-02-09 14:37:11 -06:00
Steven Silvester 1af0edbb02 Update test to reflect new error behaviour 2015-02-05 21:53:57 -06:00
blink1073 8042dc2cd9 Fix holes in lab conversions and add tests
Fix holes in lab conversions and add tests

Fix holes in lab conversions and add tests

Add saturation protection and error raising by default

Trigger travis rebuild after error

Raise warning by default, change parameter name
2015-02-05 21:47:17 -06:00
Juan Nunez-Iglesias eab2168846 Add test to ensure default bg_color in label2rgb 2015-01-14 10:05:22 +11: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 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
Rebecca 1b217f971e replacing lena in examples and most tests 2014-11-07 16:01:23 +02:00
capitanbatata 27fcb81f74 Incorporated Stefan's comments. 2014-09-11 18:23:55 +02:00
capitanbatata f078bcf779 Removed the print statements from the test code. 2014-09-11 11:09:27 +02:00
capitanbatata 272e9310d2 Added Stephan comments.
Syntax is now checked using `flake8`.
2014-09-05 13:35:35 +02:00
capitanbatata 4c3c49558d Corrected code to conform to Python coding conventions (PEP 8).
Added test code for handling exceptions.

Corrected test code to use the full path to the test data.
2014-09-03 09:13:34 +02:00
capitanbatata ceae401d33 The format strings were updated to include numbers. 2014-09-02 13:53:11 +02:00
capitanbatata c8f3a66225 Added tests for the new functionality. 2014-08-08 14:22:27 +02:00
capitanbatata ba664df275 Added new tests. The support for a wider range of illuminants is now tested. 2014-08-08 13:28:45 +02:00
Juan Nunez-Iglesias 85a5cea533 Merge pull request #1054 from blink1073/add_test_seeds
Add random seeds to tests per #1044

Additionally, change all `np.random.random` to `np.random.rand` calls, as the former are not affected by `np.random.seed`.
2014-07-20 07:48:49 -05:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -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 5ef3f95d71 Add random seeds to tests per #1044 2014-07-05 12:49:42 -05:00
Johannes Schönberger 21c80d2567 Test negative intensities 2014-06-18 10:57:34 -04:00
Juan Nunez-Iglesias fdc848b6a7 Add tests for label2rgb avg mode 2014-06-18 17:03:34 +10:00
Juan Nunez-Iglesias fdc2b8dc93 Remove is_gray and is_rgb 2014-04-09 19:41:50 +10:00
Stefan van der Walt 3dd1bc1794 Format color conversion docstrings. 2013-10-27 22:06:16 +02:00
Matthew Trentacoste 8093999731 Luv colorspace conversions
Adding XYZ <--> Luv, RGB <-->
Adding test functions to mirror Lab tests
2013-10-22 23:26:49 -07:00
Stefan van der Walt a9995b6a70 Test whether labels are left alone in label2rgb. 2013-10-11 18:44:30 +02:00
Tony S Yu c519f60285 Add support for consistent color labels for sparse labels. 2013-10-10 23:26:02 -05:00
Matt Terry e5fcece9dc spell ciede correctly 2013-08-15 09:15:39 -07:00
Matt Terry efe51c92a9 tuples are valid inputs 2013-08-05 12:43:42 -07:00
Matt Terry 6585efb763 lab2lch/lch2lab for N-D images (w/tests) 2013-07-30 14:20:55 -07:00
Matt Terry c36d1cf248 run_module_suite 2013-07-25 15:28:29 -07:00
Matt Terry 42a2671a02 skimage attribution convention 2013-07-25 15:22:43 -07:00
Matt Terry 547fa2fc6c test for rgb2lch roundtrip 2013-07-25 15:17:30 -07:00
Matt Terry 86f7c4a1d5 expose lab/lch conversion 2013-07-23 21:32:37 -07:00
Matt Terry 01d8cb2f4d make naming consistent 2013-07-23 09:16:18 -07:00
Matt Terry b2b101cc18 set testing tolerance 2013-07-23 09:13:38 -07:00
Matt Terry 4fd18d4300 fix path 2013-07-22 15:56:12 -07:00
Matt Terry 28f58a2c50 add tests. cmc stops naning 2013-07-22 15:31:27 -07:00
Matt Terry e866696d5d add color distance functions, ciede2000 tests 2013-07-21 16:33:18 -07:00
Juan Nunez-Iglesias 8736a66504 Fix typo using assert_raises in test_colorconv.py 2013-07-13 09:49:38 +10:00
Juan Nunez-Iglesias 6221ce6e3b Add test coverage for guess_spatial_dimensions() 2013-07-13 01:27:17 +02:00
Stefan van der Walt 0a727e3367 Merge pull request #485 from tonysyu/image_label2rgb
ENH: Add `label2rgb`.
2013-06-22 20:24:20 -07:00
François Boulogne 0a4fcdad0a fix imports 2013-06-20 22:46:37 +02:00
Tony S Yu fa01b936a6 API Change: image_label2rgb changed to label2rgb.
The name change reflects a switch in the argument order (and makes the image an optional argument).
2013-05-06 00:28:11 -05:00
Tony S Yu 6360240c38 TST: Add tests for image_label2rgb 2013-05-06 00:25:01 -05:00
Johannes Schönberger 5f06652648 Fix dtype bug in color tests for python 3 2013-04-28 11:29:45 +02:00
spotter c43986d6d6 ENH: Adding tests for new stain separation functions. 2013-03-12 16:15:41 +01:00