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