xfft

[ XITE Reference Manual | XITE home ]

Contents


Name

xfft - X based interactive 2D fourier transform and display

Syntax

xfft [<option>...] <inimage>

Description

xfft lets you interactively display the 2D fourier transform of parts of an image. Initially, the input image is displayed in one window, and the 2D fourier transform of the upper, left corner in another window.

You may move the processing window by pushing the left mouse button at the desired new position in the image, or change the size of the processing window by pushing the corresponding screen buttons expand and shrink.

The save button can be used to save the fourier window in a file, while the info button gives information about current sizes and positions.

The display in the fourier window is created with the fftDisplay function after taking the 2D fourier transform (using the function fft2d), with the scale argument of fftDisplay equal to 10.0.

Options

xfft accepts all X toolkit command-line options (see X(1)) as well as the XITE ximage(3) toolkit options. Additionally the following options may be useful:

-xrm XFft*ImageOverlay.roiX: x
Set horizontal coordinate x for upper-left corner of region in spatial-domain image to be Fourier-transformed.

-xrm XFft*ImageOverlay.roiY: y
Set vertical coordinate y for upper-left corner of region in spatial-domain image to be Fourier-transformed.

-xrm XFft*ImageOverlay.roiWidth: width
Set width of region in spatial-domain image to be Fourier-transformed.

-xrm XFft*ImageOverlay.roiHeight: height
Set height of region in spatial-domain image to be Fourier-transformed. This must equal the width of the region.

Resources

In order to specify resources, it is useful to know the hierarchy of the widgets which compose xfft. In the notation below, indentation indicates hierarchical structure.

The following hierarchy is constructed when the default resources/options for widget layout is used.

The widgets of class XfwfButton can be replaced by class Command (from the Athena widget set) by using the ximage(3) option -widgetset or corresponding application resource.

xfft (class XFft)

 imageShell         (class TopLevelShell)
   imageForm        (class ImageForm)
     image          (class ImageOverlay)
     menubar        (class XfwfMenuBar)
       colors       (class XfwfPullDown)
       overlays     (class XfwfPullDown)
       tools        (class XfwfPullDown)
       options      (class XfwfPullDown)
 imageShell         (class TopLevelShell)
   imageForm        (class ImageForm)
     image          (class ImageOverlay)
     menubar        (class XfwfMenuBar)
       colors       (class XfwfPullDown)
       tools        (class XfwfPullDown)
       options      (class XfwfPullDown)
 xfft control panel (class TopLevelShell)
   topContainer     (class Form)
     quit           (class XfwfButton)
     expand         (class XfwfButton)
     shrink         (class XfwfButton)
     save           (class XfwfButton)
     info           (class XfwfButton)
 colorsmenu         (class SimpleMenu)
   menuLabel        (class SmeBSB)
   backgroundcol    (class SmeBSB)
   Work-map         (class SmeBSB)
   colorsep         (class SmeLine)
   White - 256      (class SmeBSB)
   Black - 256      (class SmeBSB)
   Red - 256        (class SmeBSB)
   Green - 256      (class SmeBSB)
   Blue - 256       (class SmeBSB)
   Spectrum - 256   (class SmeBSB)
   Hue - 256        (class SmeBSB)
   Rainbow - 256    (class SmeBSB)
 overlaysmenu       (class SimpleMenu)
   menuLabel        (class SmeBSB)
   backgroundovl    (class SmeBSB)
   Std-overlay      (class SmeBSB)
   colorsep         (class SmeLine)
   White - mono     (class SmeBSB)
   Black - mono     (class SmeBSB)
 toolsmenu          (class SimpleMenu)
   menuLabel        (class SmeBSB)
   imageinfo        (class SmeBSB)
   histogram        (class SmeBSB)
   slice            (class SmeBSB)
 optionsmenu        (class SimpleMenu)
   menuLabel        (class SmeBSB)
   optionsmenusep   (class SmeLine)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)
   optionsmenusep   (class SmeLine)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)

Return value

0 when ok, 1: Can't create subband, 2: Couldn't allocate memory.

See also

fft2d(3), fftDisplay(3), ximage(3), Image(3), ImageOverlay(3)

Files

$XITE_HOME/etc/app-defaults/XFft

Author

Tor Lønnestad and Svein Bøe, BLAB, Ifi, UiO

Examples

xfft mona.img

Id

$Id: xfft.c,v 1.58 1997/08/01 11:24:22 svein Exp $