View Fourier Transform

Usage

giplt view_ft.py <image1> [<image2> <image3> .... ]

Description

This scripts loads one or more images and shows their Fourier Transforms on the screen. A viewer is opened for each loaded image. The Fourier Transform honors the origin of the reference system, which is assumed to be at the center of the image.

Script

import sys
images=LoadImageList(sys.argv[1:])
viewers=[]
i=1
for im in images:
   im.CenterSpatialOrigin()
   im.ApplyIP(alg.DFT()) 
   v=Viewer(im)
   v.SetName(sys.argv[i])
   viewers.append(v)
   i+=1

Attachments