2022-03-29 18:34:26 +00:00
|
|
|
import cupy
|
2022-03-30 13:15:41 +00:00
|
|
|
import colorsys
|
2022-03-30 17:43:46 +00:00
|
|
|
from matplotlib impl plot
|
2022-03-30 13:15:41 +00:00
|
|
|
|
|
|
|
peak = [124.3,231.5, 64.4]
|
|
|
|
h,s,v = colorsys.rgb_to_hsv(r=peak[0]/255,g=peak[1]/255,b=peak[2]/255)
|
|
|
|
SATURATION_BOOST_FACTOR = 1.5
|
|
|
|
s = min(1,s*SATURATION_BOOST_FACTOR)
|
|
|
|
print([h,s,v])
|
|
|
|
r,g,b = colorsys.hsv_to_rgb(h=h,s=s,v=v)
|
2022-03-30 17:43:46 +00:00
|
|
|
print([r,g,b])
|
|
|
|
|