Comments (3)
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.
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):
So I can scale linearly in that cube, or I can choose the HSV colour space and use that to construct colours:
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.
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)
- ARW to JPEG conversion script - you can ignore the bilatreral filter part and args, you wont need them HOT 2
- Speed tests - 20/12/2023 HOT 7
- Work Flow HOT 36
- Bounding Boxes HOT 3
- Line width of bounding box
- Bounding box padding HOT 1
- Remove "Performing prediction on 77 number of slices." printout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdc_mwe.