From 37130ccd5b5924ebce5cbbb277dbe0e0fbeeb5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 23 May 2013 14:53:43 +0200 Subject: [PATCH] fixed color loop order, removed debug print --- sstv.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sstv.py b/sstv.py index 7c0457b..d00c7bb 100644 --- a/sstv.py +++ b/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