Class JAIDFT

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class JAIDFT
    extends Transformer
    Calculate the discrete Fourier transform of an image. If the input is real, then the output has twice as many bands as the input (the dataNature parameter should be set to realToComplex). Band 0 in the input gets mapped to bands 0 and 1 in the output (band 0 contains the real information, band 1 contains the imaginary information). Band 1 in the input gets mapped to bands 1 and 2, etc.

    If the input is complex, then the output has the same amount of bands as the input (the dataNature parameter should be set to "complexToComplex", "complexToReal should never be used").

    The image is zero-padded to the next highest power of 2 (unless it already is a power of 2, in which case nothing happens).

    The output of this actor may not be suitable for displaying or saving because of the increase in the number of bands, as well as the high resolution of the data (doubles).

    Since:
    Ptolemy II 3.0
    Version:
    $Id$
    Author:
    James Yeh
    See Also:
    JAIIDFT
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Field Detail

      • dataNature

        public StringAttribute dataNature
        A parameter that describes the nature of the input and output data. The default is realToComplex. If the input is complex, then complexToComplex should be used. The setting complexToReal should probably not be used.
      • scalingType

        public StringAttribute scalingType
        The scaling to be done on the output. There are three options, none (the default, does no scaling), unitary (multiplies by square root of the product of the dimensions), and dimensions (multiplies by the product of the dimensions). In a DFT-IDFT chain, the overall scaling should equal the product of the dimensions.