mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:07:35 +03:00
Enabled conversion to numpy array for HSV images. #1559
This commit is contained in:
parent
d392b423cd
commit
8b76f557ce
|
@ -4,6 +4,9 @@ Changelog (Pillow)
|
||||||
3.1.0 (unreleased)
|
3.1.0 (unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
- Enabled conversion to numpy array for HSV images. #1559
|
||||||
|
[cartisan]
|
||||||
|
|
||||||
- Fix command to invoke ghostscript for eps files. #1478
|
- Fix command to invoke ghostscript for eps files. #1478
|
||||||
[baumatron, radarhere]
|
[baumatron, radarhere]
|
||||||
|
|
||||||
|
|
|
@ -250,6 +250,7 @@ _MODE_CONV = {
|
||||||
"CMYK": ('|u1', 4),
|
"CMYK": ('|u1', 4),
|
||||||
"YCbCr": ('|u1', 3),
|
"YCbCr": ('|u1', 3),
|
||||||
"LAB": ('|u1', 3), # UNDONE - unsigned |u1i1i1
|
"LAB": ('|u1', 3), # UNDONE - unsigned |u1i1i1
|
||||||
|
"HSV": ('|u1', 3),
|
||||||
# I;16 == I;16L, and I;32 == I;32L
|
# I;16 == I;16L, and I;32 == I;32L
|
||||||
"I;16": ('<u2', None),
|
"I;16": ('<u2', None),
|
||||||
"I;16B": ('>u2', None),
|
"I;16B": ('>u2', None),
|
||||||
|
|
|
@ -113,6 +113,7 @@ class TestNumpy(PillowTestCase):
|
||||||
("I;16", '<u2'),
|
("I;16", '<u2'),
|
||||||
("I;16B", '>u2'),
|
("I;16B", '>u2'),
|
||||||
("I;16L", '<u2'),
|
("I;16L", '<u2'),
|
||||||
|
("HSV", 'uint8'),
|
||||||
]
|
]
|
||||||
|
|
||||||
for mode in modes:
|
for mode in modes:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user