企鹅大战易家军吧 关注:2贴子:13
  • 0回复贴,共1

啊啊啊啊啊啊啊啊啊啊啊啊

只看楼主收藏回复

def a(R,G,B):
max1=max(R,G,B)
min1=min(R,G,B)
if R == max1: H = (G-B)/(max1-min1)
if G == max1: H = 2 + (B-R)/(max1-min1)
if B == max1: H = 4 + (R-G)/(max1-min1)
H = H * 60
if H < 0:
H = H + 360
V=max(R,G,B)
S=float((max1-min1))/max1
return (H,S,V)
***
a=Image.open(*111.png*)
b=a.load()
b[x,y]
***


1楼2014-11-06 13:04回复