Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colormap does not space colors differently for different n #176

Open
willwhitney opened this issue Jul 12, 2016 · 0 comments
Open

colormap does not space colors differently for different n #176

willwhitney opened this issue Jul 12, 2016 · 0 comments

Comments

@willwhitney
Copy link

image.colormap should return colors that are further away from each other if there are only a few colors needed, i.e. colors should be evenly spaced around the hue wheel.

However, the tensor returned is identical for any n given. It always returns a truncated copy of the same tensor.

th> image.colormap(4)
 0.6500  0.3500  0.3500
 0.7056  0.5617  0.2944
 0.6044  0.7611  0.2389
 0.2150  0.8167  0.1833
[torch.DoubleTensor of size 4x3]
th> image.colormap(12)
 0.6500  0.3500  0.3500
 0.7056  0.5617  0.2944
 0.6044  0.7611  0.2389
 0.2150  0.8167  0.1833
 0.1278  0.8722  0.5744
 0.0722  0.7139  0.9278
 0.0167  0.1133  0.9833
 0.5189  0.3111  0.6889
 0.7444  0.2556  0.6467
 0.8000  0.2000  0.2900
 0.8556  0.5000  0.1444
 0.7878  0.9111  0.0889
[torch.DoubleTensor of size 12x3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant