Stefan van der Walt
28df57edc8
Merge pull request #1130 from capitanbatata/more-illuminants
...
Add more illuminants to color conversion
2014-10-01 01:46:16 +02:00
capitanbatata
b44d4f7f45
Added Johannes' comments.
2014-09-30 08:32:48 +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
Rebecca
812b23d41f
making in-place addition modification suggested in issue #1089
2014-08-31 11:37:35 +01: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
capitanbatata
95f18c71da
Added support for different illuminants.
2014-08-08 10:43:57 +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
34d7fdb138
Fix docstring for wrapped functions
2014-07-16 23:45:55 -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
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
b494e36223
Add docstring for _label2rgb_overlay
2014-06-18 17:03:21 +10:00
Juan Nunez-Iglesias
b70d423aab
Add default values for background in _label2rgb_avg
2014-06-18 16:46:51 +10:00
Juan Nunez-Iglesias
d72163a037
Add docstring for _label2rgb_avg
2014-06-18 16:46:15 +10:00
Juan Nunez-Iglesias
7cc40ddbff
Add background label handling for label2rgb_avg
2014-06-18 16:44:02 +10:00
Juan Nunez-Iglesias
a1fd895c4a
Split label2rgb into two related functions
2014-06-17 17:45:15 +10:00
Juan Nunez-Iglesias
1eae917af3
Update label2rgb doc
2014-06-17 17:00:42 +10:00
Maximilian Albert
adbc2efbfa
Fix copy/paste error in docstring.
2014-05-17 18:20:10 +01:00
Juan Nunez-Iglesias
fdc2b8dc93
Remove is_gray and is_rgb
2014-04-09 19:41:50 +10:00
Stefan van der Walt
df8a14f6f0
Merge pull request #798 from matttrent/luv-colorspace
...
Add Luv colorspace
2013-11-20 22:35:32 -08:00
Johannes Schönberger
7f27d5bffb
Fix label2rgb bug
2013-11-09 22:04:28 +01:00
Stefan van der Walt
3dd1bc1794
Format color conversion docstrings.
2013-10-27 22:06:16 +02:00
Stefan van der Walt
eb6867cfe2
Make six an external dependency.
2013-10-27 14:06:26 +02:00
Matthew Trentacoste
888ef05b63
Adding note for Luv colorspace to top docstring
2013-10-23 22:23:26 -07:00
Matthew Trentacoste
c05d18a010
docstring changes to correctly format input/output, clarifying XYZ and reference white
2013-10-23 22:21:15 -07:00
Matthew Trentacoste
44580817fc
Cleaning up docstrings
2013-10-23 12:42:40 -07:00
Matthew Trentacoste
df6a112bc5
flake8-compliant formatting
2013-10-23 00:07:00 -07:00
Matthew Trentacoste
9d9d16d2a4
renaming machineEps to eps to match convention
2013-10-22 23:52:12 -07:00
Matthew Trentacoste
36e56e2639
Removing unneeded division checking code
2013-10-22 23:33:38 -07:00
Matthew Trentacoste
57eb69465c
Adding references regarding Lab and Luv spaces to docstring
2013-10-22 23:29:51 -07: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
Tony S Yu
5a7e191f7b
Fix Python 3 incompatibility
2013-10-21 23:02:51 -05:00
Tony S Yu
0663626667
Clean up color_dict definition
2013-10-21 23:02:46 -05: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
Kemal Eren
4db1e1b83c
handle case when there are no labels
2013-10-07 23:17:52 -07:00
Kemal Eren
794176b7c4
fixed error in label2rgb() when label is a binary array
2013-10-07 20:53:48 -07:00
Kemal Eren
bdafd1e3d6
ENH: optimized label2rgb()
2013-10-07 16:47:01 -07:00
Johannes Schönberger
c3d40447f8
Remove call to deprecated is_gray function
2013-10-02 16:58:32 +02:00
Matt Terry
7e7fb2fc85
comma usage
2013-08-19 11:26:07 -07:00
Matt Terry
600305eb85
doc quickfix
2013-08-19 11:04:29 -07:00
Matt Terry
d86b624d43
r is confusing, use ab instead
2013-08-17 11:11:23 -07:00