-
Notifications
You must be signed in to change notification settings - Fork 209
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
Error in default color map #332
Comments
GitMate.io thinks possibly related issues are #147 (replaceImage() returns error), #278 (Module not found error in demo), #281 (Skip writing defaults into toString), and #145 ("reader is not defined" error on demo). |
1 similar comment
GitMate.io thinks possibly related issues are #147 (replaceImage() returns error), #278 (Module not found error in demo), #281 (Skip writing defaults into toString), and #145 ("reader is not defined" error on demo). |
Questions: @jywarren 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] ], |
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>
.
|
-OK so they are all good except for the old default,
|
Awesome! So, you can supply a unique colormap as an array parameter to the colormap module: image-sequencer/src/modules/Colormap/Colormap.js Lines 14 to 22 in cce6514
I bet we could offer the ability to input a string that would be used as a gradient, using the https://github.com/publiclab/image-sequencer/blob/master/CONTRIBUTING.md#info-file |
Adding a string input like
|
@jywarren @MargaretAN9 Are you guys still working on this issue? |
Yes, but I haven’t had time to sort out all the issues. 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. default: colormap([ 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 . |
@MargaretAN9 should I go ahead and implement these changes in code or would you like to do it? Thanks for all the help! |
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. |
@MargaretAN9 I tried your function and this is the result I am getting. Please have a look. |
Awesome!! |
I have finished encoding new colormaps for image sequencer. This should fix the double color default problem described above and add more options. -Updated colorbars for image sequencer are pictured below: -Changes made: -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. -Hopefully, @tech4GT can check all this and @jywarren can load the colormap.js file. |
Great work @MargaretAN9 I'm a little busy right now but will get to this as soon as possible!! Thanks!! 😄 |
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!! 😄
—
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/AABfJ0nR_anP96kqwWqJrq9OQYgPNdg-ks5ukg-mgaJpZM4Whnar>
.
|
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!) |
Ah! I missed this because it was opened against jywarren, but should be publiclab... moving to #475 AWESOME |
image-sequencer/src/modules/Colormap/Colormap.js
Lines 59 to 63 in cce6514
via @MargaretAN9 shows an error in the default color bar, which has 2 "yellow" regions. We'd love help fixing this!
The text was updated successfully, but these errors were encountered: