Commit Graph

48 Commits

Author SHA1 Message Date
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
spotter 7c371e1662 FIX: img_as_ubyte function threw ValueError due to floating point errors in hed2rgb function.
Clipping the output of the hed2rgb function between 0 and 1 seems to correct
the bug without affecting the conversion quality.
2013-03-08 12:58:22 +01:00
spotter 7439fe96e8 FIX: Testing for ubyte and float images. Input dtypes are converted beforehand. 2013-03-07 00:14:06 +01:00
Xavier Moles Lopez 0a6b72bfe4 FIX: Fixed test_hed_rgb_roundtrip. 2013-03-04 12:15:35 +01:00
Xavier Moles Lopez 7f5b331f22 FIX: import rgb2hed and hed2rgb in the test_colorconv script. 2013-03-04 12:04:44 +01:00
spotter 3e6e690590 ENH: Added a short test to validate rgb2hed and hed2rgb conversion 2013-03-01 11:50:10 +01:00
Sergey Karayev 6953785eab added rgb2lab test 2012-12-02 22:51:16 -08:00
Sergey Karayev 5108d8c346 Fixed RGB<->XYZ conversion.
Now correctly follows the algorithm from EasyRGB.
Also fixed a XYZ<->Lab conversion issue by adding
a .copy().
2012-11-29 12:06:01 -08:00
Stefan van der Walt 4a0564a769 Add is_rgb and is_gray. 2012-10-17 00:05:36 -07:00
Stefan van der Walt 120571b079 BUG: Allow RGB images to be passed to grey2rgb. 2012-10-17 00:05:36 -07:00
Andreas Mueller 3448e419b3 ENH slight cleanup, fixed *1000 bug, added test and rgb2lab convenience. 2012-07-26 22:44:02 +01:00
Dharhas Pothina 8cd912a894 tests added for xyz2lab and lab2xyz 2012-07-21 09:10:05 -05:00
Stefan van der Walt 4d1809a63c BUG: Allow rgb2grey to be called on grey-level images. 2012-07-08 17:49:17 -07:00
Andreas Mueller 9f34c84f1a COSMIT don't let pep8 make your matrices ugly. 2012-06-29 11:27:23 +02:00
Andreas Mueller f7b3d8062c COSMIT pep8 2012-06-29 11:27:23 +02:00
Stefan van der Walt f4330db90d ENH: Add grey2rgb. 2012-02-08 19:58:26 -08:00
Stefan van der Walt ec8f62ef5f ENH: Fix dtype conversion before hsv2rgb and rgb2hsv. 2012-02-08 19:56:00 -08:00
Nelle Varoquaux 114cf44c77 Renamed scikits.image to skimage 2011-10-18 21:12:27 +02:00