fixed color loop order, removed debug print

This commit is contained in:
András Veres-Szentkirályi 2013-05-23 14:53:43 +02:00
parent 83a11b549c
commit 37130ccd5b

View file

@ -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