from PIL import Image
-from commons import clear
-
def edge_detection(image):
- clear()
- print "edge detection"
-
image_l = image.load()
new_image = Image.new('L', image.size)
new_image_l = new_image.load()
return new_image
def peaks(image):
- clear()
- print "peak extraction"
-
image_l = image.load()
new_image = Image.new('L', image.size)
new_image_l = new_image.load()
return new_image
def high_pass(image, height):
- clear()
- print "high pass filter"
-
image_l = image.load()
new_image = Image.new('L', image.size)
new_image_l = new_image.load()
return new_image
def components(image):
- clear()
- print "components center filter"
-
image_l = image.load()
new_image = Image.new('L', image.size)
new_image_l = new_image.load()
new_image_l[int(round(float(x_c)/c)), int(round(float(y_c)/c))] = 255
- return new_image
\ No newline at end of file
+ return new_image