16 lines
379 B
Python
Executable File
16 lines
379 B
Python
Executable File
run("pip")
|
|
|
|
ip1 = load_image("{data}/img/grid.png", title="Grid")
|
|
ip2 = load_image("{data}/img/square.png", title="Square")
|
|
|
|
grayscale(ip1)
|
|
grayscale(ip2)
|
|
|
|
|
|
cor = op_fft(ip1, ip2, "correlate", True)
|
|
con = op_fft(ip1, ip2, "convolve", True)
|
|
dec = op_fft(con, ip2, "deconvolve", True)
|
|
|
|
create_stack([ip1,ip2,grayscale(cor,False),grayscale(con,False),grayscale(dec,False)]).show()
|
|
|