Computes Fourier Trasnform honoring the origin of the image.
Computes Fourier Trasnform honoring the origin of the image
- See also
- View Phase Diference Example
-
"View Fourier Transform Example"
1import sys
3if len(sys.argv)<2:
4 images=io.LoadImageList(['square.png','circle.png'])
5else:
6 images=io.LoadImageList(sys.argv[1:])
7viewers=[]
8i=1
9main_area=gui.GostyApp.Instance().perspective.main_area
10for im in images:
11 im.CenterSpatialOrigin()
12 im.ApplyIP(img.alg.DFT())
13 v=gui.CreateDataViewer(im,"Image")
14 viewers.append(v)
15 i+=1