mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 16:16:31 +08:00
Bug fix: map returns iterator in Py3k
This commit is contained in:
@@ -739,7 +739,7 @@ def xyz2lab(xyz):
|
||||
a = 500.0 * (x - y)
|
||||
b = 200.0 * (y - z)
|
||||
|
||||
return np.concatenate(map(lambda x: x[..., np.newaxis], [L, a, b]), -1)
|
||||
return np.concatenate([x[..., np.newaxis] for x in [L, a, b]], axis=-1)
|
||||
|
||||
|
||||
def lab2xyz(lab):
|
||||
|
||||
Reference in New Issue
Block a user