Coder Social home page Coder Social logo

Box Colours about asdc_mwe HOT 3 CLOSED

littlerob84 avatar littlerob84 commented on August 18, 2024
Box Colours

from asdc_mwe.

Comments (3)

NicoMandel avatar NicoMandel commented on August 18, 2024

Hi Rob

I had a look and these are the RGB values for yellow blue and black:
yellow is (255, 255, 0)
blue is (0, 0, 255)
black is (0, 0, 0)
I do not see a linear scaling there between those three, so I'll just scale blue to be darker according to the confidence level.
Of course we can adapt this further if needs be.

from asdc_mwe.

NicoMandel avatar NicoMandel commented on August 18, 2024

If you guys could figure out 3 box colours that I can scale between with a single input value, I'd be really happy.
So I get 1 input value, the confidence here and all I have to do is scale the R channel down and the G channel up depending on the confidence to get a traffic light, while keeping the B channel constant.
Now with your desired values and the corresponding RGB values:
High confidence (input value 1.0) - Blue - (0, 0, 255)
Medium confidence (input value 0.5) - Yellow - (128, 128, 0) or (255, 255, 0) or (128, 128, 20)
Low confidence - black - (input value 0.0) - Black - (0,0,0)

It's really difficult for me to scale, because I have to change R, as well as G as well as B and none of them linearly.... If you can figure out a scheme that would allow me to scale without having to change nonlinearly (e.g. if conf goes up, everything should go either up or down... just not first up and then down)
You can basically choose from any colour space and I can construct the value and then convert it, it doesn't need to be RGB. The two most common ones are RGB and HSV (hue-saturation-value):
rgbcube
So I can scale linearly in that cube, or I can choose the HSV colour space and use that to construct colours:
hsv

Worth sitting down for 10 minutes with pen and paper and looking at some colours, just let me know which ones you want.

from asdc_mwe.

littlerob84 avatar littlerob84 commented on August 18, 2024

I think as Blue is quite an easy colour to see in all the landscapes we capture, that should be the base colour, with full blue (0, 0, 255) the high confidence and then scaling the B channel down as the confidence goes down, so that 0,0,0 (which is black) is low confidence. That means only scaling the B channel down in a linear function based on the confidence level.

So high confidence = 0,0,255
Medium confidence = 0,0,127
Low confidence = 0,0,0

Need to confirm Mark is happy with this before committing to.

from asdc_mwe.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.