我试图理解这段代码,但是我无法推断出红色和反式的含义。如果您能提供帮助,我会很高兴:
import sys
import Image
# pixel constants in hex
trans="\x00\x00\x00\x00"
# reds most to least, the last is trans and used as a noise factor
reds=("\xf1\x34\x00\xff" , "\xfa\x00\x2f\xff",
"\xf1\x36\x36\xff", "\xfe\x74\x74\xff", "\xfe\xc3\xc3\xff",
"\xf9\xcb\xcb\xff", "\xf1\xd3\xd3\xff", "\x00\x00\x00\x00")
完整代码位于:https ://matsu-project.googlecode.com/svn-history/r28/trunk/streaming-image-processing/src/reduce.py