algorithm - How to efficiently digitize a color scale? -


In the context of a Doppler signal analysis, the measured velocity is converted to a color scale such as the bottom. Unfortunately, I do not have any direct access to the values ​​of velocity, so I have to digitize the color scale to 1-digit numeric scale , through an analog signal S-Video cable, a Python Nampi Areas as images (as given below) Are anybody pointing me to a suitable algorithm, please? Should I try to use a color histogram?

Additional information:

Color scale is symmetric, so if maximum velocity is x , then min

  • Red: Maximum positive velocity (for supervisor) (Away from the supervisor)
  • Doppler color scale

    < P> This scale will be used to analyze such pictures (OpenCV usage):

    This looks like color Without the need to use HSV or HSL, it is quite easy to reproduce.

    x is a float and -1.0f to 1.0f :

      r = std :: max  int> (255, 512 * x))); G = std :: max & lt; Int & gt; (0, std :: min> int> (255, 512 * (std :: abs & lt; float & gt; (x) - 0.5f))); B = std :: max & lt; Int & gt; (0, std :: min> int> (255, -512 * x));  

    Comments

    Popular posts from this blog

    java - org.apache.http.ProtocolException: Target host is not specified -

    java - Gradle dependencies: compile project by relative path -

    ruby on rails - Object doesn't support #inspect when used with .include -