python rgb位运算合成一个数
在pcd中,经常会把颜色通道r g b三个值合成一个值,具体方法如下:
red = 255 green = 0 blue = 0 rgb_color = (red << 8 | green << 0 | blue << 24) int_color = ((((red & 0xff) << 8) | (green & 0xff) << 0) | (blue & 0xff) << 24)
#################
标签:blue,运算,python,合成,rgb,red From: https://www.cnblogs.com/herd/p/17353027.html