Commit Graph
63 Commits
Author SHA1 Message Date
Stefan van der Walt b04c3282bf Fix zip. 2013-06-29 10:17:41 -05:00
Stefan van der Walt 9a38a59a25 Remove is_str and replace by isinstance(..., six.string_types). 2013-06-29 10:16:42 -05: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 20401d3e12 Change color definitions from ini file to python module
This simplifies the code and allows users to use either `color_dict` or module
variables, e.g., `rgb_colors.white`.
2013-06-19 19:31:47 -05:00
Stefan van der Walt 2cfd075adb Merge pull request #538 from ahojnnes/examples-travis
TST: Let Travis run all examples.
2013-05-29 03:53:47 -07:00
Johannes Schönberger d644118ea4 Merge pull request #532 from ankit-maverick/deprecate_is_rgb
Deprecating is_rgb()
2013-05-27 13:26:48 -07:00
Ankit Agrawal d1a7a90a59 Deprecating is_rgb and is_gray 2013-05-21 02:00:06 +08:00
Ankit Agrawal dc3ecf58ad Removing redundant imports used in previous commits 2013-05-16 00:56:54 +08:00
Ankit Agrawal 7dfea72ec3 Removing is_gray() and is_rgb() 2013-05-16 00:52:51 +08: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
Tony S Yu 4bd3fe9eb0 ENH: Add some checks on the inputs. 2013-05-06 00:25:01 -05:00
Tony S Yu 90c0ac5c19 Fix: Add setup.py which adds data file to the build 2013-05-06 00:25:01 -05:00
Tony S Yu 19fdad15b9 Add image_label2rgb 2013-05-06 00:25:01 -05:00
Ankit Agrawal 4cb251bbe6 Deprecating is_gray and replacing it with is_gray_2d 2013-04-30 18:44:42 +05:30
Johannes Schönberger 4fce7b3b55 Explicitly import color functions 2013-04-28 23:18:51 +02:00
Johannes Schönberger 17f202b013 Add __all__ to color package 2013-04-28 23:18:51 +02:00
Johannes Schönberger 5f06652648 Fix dtype bug in color tests for python 3 2013-04-28 11:29:45 +02:00
Ankit Agrawal f1529aef8e Reverting the changes 2013-04-27 11:12:13 +05:30
Ankit Agrawal 2992ca7ade Deprecating is_rgb() 2013-04-24 05:13:34 +05:30
Xavier Moles Lopez d0a15a7cf9 FIX: Example in combine_stains docstring. 2013-03-13 15:14:39 +01:00
Xavier Moles Lopez b75776cc2e ENH: Updated stain separation function docstrings and added matrices to __all__ 2013-03-13 14:35:16 +01:00
spotter 74acdc9fa9 FIX: changed unicode dash in docstrings. 2013-03-12 17:09:17 +01:00
spotter 6f7158046f FIX: combine_stains docstring. 2013-03-12 16:41:02 +01:00
spotter b3e557b550 FIX: using the new stain separation functions for the special case of hed. 2013-03-12 16:19:51 +01:00
spotter c43986d6d6 ENH: Adding tests for new stain separation functions. 2013-03-12 16:15:41 +01:00
spotter f48097c5ca FIX: fixed docstrings. ENH: Added new stain separation matrices. 2013-03-12 16:06:32 +01:00
spotter 20f27345c3 FIX: rgb2hed and hed2rgb can work with both signed and unsigned image. 2013-03-12 14:22:53 +01:00
spotter 5b25e7e961 FIX: Replaced non-ascii double quotes in Ruifrok reference. 2013-03-09 13:23:36 +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
Xavier Moles Lopez 40e7aee4de FIX: Ran autopep8 on colorconv.py FIX: modified color.data.ihc function FIX: smaller ihc.jpg image 2013-03-04 10:50:17 +01:00
spotter 85b1795cdb FIX: Removed unused dependency 2013-03-01 12:17:15 +01:00
spotter 3e6e690590 ENH: Added a short test to validate rgb2hed and hed2rgb conversion 2013-03-01 11:50:10 +01:00
spotter b065580c0a FIX: Simplified deconvolution equations 2013-03-01 11:49:23 +01:00
spotter 74b37dbb05 ENH: Added rgb2hed and hed2rgb to __all__ list 2013-02-28 16:26:57 +01:00
spotter 997870ce23 FIX: the rgb2hed function. Legal issues regarding the ihc image. ENH: added the hed2rgb function. 2013-02-28 16:15:15 +01:00
spotter ae685075e1 ENH: Adding color deconvolution method to convert to an Haematoxylin-Eosin-DAB colorspace 2013-02-26 16:25:42 +01:00
Sergey Karayev 6953785eab added rgb2lab test 2012-12-02 22:51:16 -08:00
Sergey Karayev 43eb33d26b flake8 on colorconv.py and removed unneeded .copy() 2012-11-30 01:30:59 -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
tonysyu 8b544f2f69 Merge pull request #230 from dharhas/dharhas-lab-color-space
xyz <--> lab color space conversions
2012-08-01 07:02:38 -07:00
Andreas Mueller f74ca8685b MISC minor cleanup in doctests / examples 2012-07-31 22:00:32 +01:00
Dharhas Pothina b54817c5b3 minor cleanup of comments & move ref_white to global lab_ref_white 2012-07-30 10:07:33 -05:00
Andreas Mueller 3448e419b3 ENH slight cleanup, fixed *1000 bug, added test and rgb2lab convenience. 2012-07-26 22:44:02 +01:00