-
Notifications
You must be signed in to change notification settings - Fork 0
/
Edge_Detection_Main.py
62 lines (52 loc) · 2.13 KB
/
Edge_Detection_Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
'''
===============================================================================
ENGR 133 Fa 2020
Assignment Information
Assignment: Python Team Project: Image Analysis
Author: Matthew Kane, kane83@purdue.edu
Team ID: LC5-005
Contributors: Matthew Kane, kane83@purdue.edu
Dominick Caponigro, dcoponig@purdue.edu
Avneesh Viswanath, viswan16@purdue.edu
Ismail Husain, husain6@purdue.edu
My contributor(s) helped me:
[ ] understand the assignment expectations without
telling me how they will approach it.
[ ] understand different ways to think about a solution
without helping me plan my solution.
[ ] think through the meaning of a specific error or
bug present in my code without looking at my code.
Note that if you helped somebody else with their code, you
have to list that person as a contributor here as well.
===============================================================================
'''
#Bugfix_1.4
#Edge detection program using the Sobel Algorithm
import Doms_test as gray
import image_blurr_functions as blur
import Sobel_edge_enhancement as enhance
import Threshold as detect
import time
#Create a grayscale image
grayImage = gray.GrayScale()
#Apply a Gaussian Blur filter
blurImage = blur.GaussianBlur(grayImage)
#Perform Edge Enhancement
start = time.time()
enhancedImage = enhance.sobel_edge_detection(blurImage)
end = time.time()
print(f"Edge enhancement completed in {round(end-start,2)} seconds.")
#Perform Sobel Edge Detection
start = time.time()
finalImage = detect.Threshold()
end = time.time()
print(f"Final edge detection completed in {round(end-start,2)} seconds.")
'''
===============================================================================
ACADEMIC INTEGRITY STATEMENT
I have not used source code obtained from any other unauthorized
source, either modified or unmodified. Neither have I provided
access to my code to another. The project I am submitting
is my own original work.
===============================================================================
'''