Skip to content

Commit c646cca

Browse files
committed
Update
1 parent 93c3ecc commit c646cca

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

AverageColoursFilter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
blue=0.0
5555
green=0.0
5656
red=0.0
57-
filterx=x-offsetx
58-
filtery=y-offsety
57+
#filterx=x-offsetx
58+
#filtery=y-offsety
5959
for fy in range(filterheight):
6060
for fx in range(filterwidth):
6161
cpixel=j.getpixel((x-offsety+fx,y-offsety+fy))

DilateAndErodeFilter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
blue=morphresetvalue
6767
green=morphresetvalue
6868
red=morphresetvalue
69-
filterx=x-offsetx
70-
filtery=y-offsety
69+
#filterx=x-offsetx
70+
#filtery=y-offsety
7171
if(morphtype==1):
7272
for fy in range(filterheight):
7373
for fx in range(filterwidth):

Image Convolution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@
165165
blue=0.0
166166
green=0.0
167167
red=0.0
168-
filterx=x-offsetx
169-
filtery=y-offsety
168+
#filterx=x-offsetx
169+
#filtery=y-offsety
170170
for fy in range(filterheight):
171171
for fx in range(filterwidth):
172172
cpixel=j.getpixel((x-offsety+fx,y-offsety+fy))

SolarisationAlgo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
i = Image.open("input.png")
2424

2525
#pixel data is stored in pixels in form of two dimensional array
26-
pixels = i.load()
26+
pixels = i.load()
2727
width, height = i.size
2828
j=Image.new(i.mode,i.size)
2929

30-
threshold=128
30+
threshold=128
3131
for x in range(width):
3232
for y in range(height):
33-
cpixel = pixels[x, y]
33+
cpixel = pixels[x, y]
3434
#cpixel[0] contains red value cpixel[1] contains green value
3535
#cpixel[2] contains blue value cpixel[3] contains alpha value
3636
if(cpixel[0]<threshold):

output.png

-429 KB
Binary file not shown.

0 commit comments

Comments
 (0)