New ScreenPanel
This commit is contained in:
15
script/image9.py
Executable file
15
script/image9.py
Executable file
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user