Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Error in default color map #332
1 similar comment
2)There are 5 colormaps in image sequencer but only 4 are posted (default, stretched, greyscale and fastie). Missing is NDVI listed below. Do you have a picture of the NDVI colormap and why is it not on the image sequencer drop down menu?
| [0, [0, 0, 255], [38, 195, 195] ],
ah cool, yes we can add in the NDVI colormap, i'm not sure why it wasn't included. What does it look like? For the others, if we can figure out how to reproduce them we could add them, they look cool... I wonder if there are any programmatic descriptions of how they are generated?…
On Wed, Sep 12, 2018 at 12:12 AM MargaretAN9 ***@***.***> wrote: Questions: @jywarren <https://github.com/jywarren> 1)I have downloaded several colorbars form public lab ( https://publiclab.org/wiki/ndvi-gradients) and other sites. Are you looking for something like ‘physics’ for default? [image: slide3] <https://user-images.githubusercontent.com/37722313/45401735-08f0af00-b620-11e8-830e-1c1f4b7ae083.JPG> 2)There are 5 colormaps in image sequencer but only 4 are posted (default, stretched, greyscale and fastie). Missing is NDVI listed below. Do you have a picture of the NDVI colormap and why is it not on the image sequencer drop down menu? ndvi: colormap([ | [0, [0, 0, 255], [38, 195, 195] ], | [0.5, [0, 150, 0], [255, 255, 0] ], | [0.75, [255, 255, 0], [255, 50, 50] ] — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#332 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABfJ-NnYGKh3j7ZDyhUGkr23b95gSmxks5uaImJgaJpZM4Whnar> .
Awesome! So, you can supply a unique colormap as an array parameter to the colormap module:
I bet we could offer the ability to input a string that would be used as a gradient, using the
1)Problem: Existing ‘default’ colormap has two yellows (255,255,0)
Solution: Remove first yellow and replace with blue/green (0,255,255)? This eliminates the double yellow and permits blue/green blend in center.
2)Problem : Add ’ NDVI’ colormap. This seems to be a new menu edition but I have not been able to display what it would look like:
It seems to be :
.5 to .75---light green to yellow
.75 to 1 yellow to dark red
3)Problem: Add new colormaps .
Yes, that would solve the current 'default' glitch problem as well as add the NDVI colormap option. This should make image sequencer consistent with infragram (https://infragram.org/sandbox/)
Note I am still not exactly sure if I have the right 'default' function so we may have to adjust again.
I have finished encoding new colormaps for image sequencer. This should fix the double color default problem described above and add more options.
-Software: Colormap software changes have been made to colormap.js . Note I have only made modifications to colormap.js and have not added new colormap names to the ‘Name of the colormap’ drop down menu. File is located here : https://github.com/MargaretAN9/Image-sequencer/blob/master/Colormap.js
-Names are based on color descriptions. Feel free to change.
-Sometype of colorbar menu/description needs to added so everyone knows what type of colorbar they can use. My first attempt at this is here: https://github.com/MargaretAN9/Image-sequencer/blob/master/image%20sequence%20colormaps%20v7.pptx
-Colorbars were tested/generated using image sequencer “gradient colormap”
-I can create new colormaps but figured it was best to see how these work first.
Ohhhh this is amazing. I'm at an event in China right now but will look as soon as I can!!!!!…
On Sun, Oct 14, 2018, 12:07 AM Varun Gupta ***@***.***> wrote: Great work @MargaretAN9 <https://github.com/MargaretAN9> I'm a little busy right now but will get to this as soon as possible!! Thanks!!
OK, this is super. @MargaretAN9 have you opened a pull request yet? I think we could essentially do this in 2 smaller parts - the back-end code in one, where you have to specify based on just submitting a string. We currently display the names of colormaps here:
However, I think we ought to begin displaying the actual gradients in the HTML UI. I'm not sure, but I don't think this can be done in a
(could you post a screenshot of your PPT in a comment? I'm having trouble viewing it, thanks!)