OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fft_li.py

Computes Fourier Trasnform honoring the origin of the image

See Also
View Phase Diference Example
"View Fourier Transform Example"
1 import sys
2 import ost.img.alg
3 if len(sys.argv)<2:
4  images=io.LoadImageList(['square.png','circle.png'])
5 else:
6  images=io.LoadImageList(sys.argv[1:])
7 viewers=[]
8 i=1
9 main_area=gui.GostyApp.Instance().perspective.main_area
10 for 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