Mercurial > hg > orthanc-stone
comparison Applications/Resources/Colormaps/GenerateColormaps.py @ 1743:12528a80e3dd
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Feb 2021 09:15:31 +0100 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1742:911cd9a11ad3 | 1743:12528a80e3dd |
---|---|
35 else: | 35 else: |
36 color = plt.get_cmap(name) (gray) | 36 color = plt.get_cmap(name) (gray) |
37 | 37 |
38 colormap += map(lambda k: int(round(color[k] * 255)), range(3)) | 38 colormap += map(lambda k: int(round(color[k] * 255)), range(3)) |
39 | 39 |
40 colormap[0] = 0 | 40 #colormap[0] = 0 |
41 colormap[1] = 0 | 41 #colormap[1] = 0 |
42 colormap[2] = 0 | 42 #colormap[2] = 0 |
43 | 43 |
44 return array.array('B', colormap).tostring() | 44 return array.array('B', colormap).tostring() |
45 | 45 |
46 | 46 |
47 for name in [ | 47 for name in [ |