diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-03-11 11:30:15 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-03-11 11:30:15 +0530 |
commit | 433fbca42951b352c5bf9b6d268632cdfc40a57c (patch) | |
tree | 7c2a67c3f9c639acad757a540e98a6bd3d375fa3 /src | |
parent | 1521f449854abe77c4c76bed386909109270077d (diff) |
Removed redundant GetImage function
Diffstat (limited to 'src')
-rw-r--r-- | src/VHSImage.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/VHSImage.py b/src/VHSImage.py index bbc5ddf..ce6411a 100644 --- a/src/VHSImage.py +++ b/src/VHSImage.py @@ -21,7 +21,6 @@ def generate_offsets(array_size, max_offset): periodicity = random.random() * periodicity offsets = [] for i in range(array_size): - # print(floor(max_offset*np.sin(periodicity*(i*np.pi/180)))) offsets.append(floor(max_offset*np.sin(periodicity*(i*np.pi/180)))) return offsets @@ -39,11 +38,8 @@ def hueChange(img, offset): offset = offset/100. for rd, gr, bl in zip(r.getdata(), g.getdata(), b.getdata()): h, s, v = colorsys.rgb_to_hsv(rd/255.0, bl/255.0, gr/255.0) - # print(h, s, v) - # print(rd, gr, bl) rgb = colorsys.hsv_to_rgb(h, s+offset, v) rd, bl, gr = [int(x*255.) for x in rgb] - # print(rd, gr, bl) r_data.append(rd) g_data.append(gr) b_data.append(bl) |