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 Color scale is symmetric, so if maximum velocity is 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:
x
, then min >
< 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
Post a Comment