mirror of
https://github.com/dnet/pySSTV.git
synced 2026-01-04 15:50:14 +01:00
fixed color loop order, removed debug print
This commit is contained in:
parent
83a11b549c
commit
37130ccd5b
7
sstv.py
7
sstv.py
|
|
@ -110,10 +110,9 @@ class ColorSSTV(GrayscaleSSTV):
|
|||
cs = self.COLOR_SEQ
|
||||
msec_pixel = self.SCAN / self.WIDTH
|
||||
image = self.image
|
||||
for col in xrange(self.WIDTH):
|
||||
pixel = image.getpixel((col, line))
|
||||
print pixel
|
||||
for index in cs:
|
||||
for index in cs:
|
||||
for col in xrange(self.WIDTH):
|
||||
pixel = image.getpixel((col, line))
|
||||
value = pixel[index]
|
||||
freq_pixel = FREQ_BLACK + FREQ_RANGE * value / 255
|
||||
yield freq_pixel, msec_pixel
|
||||
|
|
|
|||
Loading…
Reference in a new issue