Class JAIPhase

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

    public class JAIPhase
    extends Transformer
    Output the phase of a complex image. This actor assumes that the image inputted has an even number of bands, where each pair of bands (0 and 1, 2 and 3, etc.) correspond to a real-imaginary pair.

    The output of this actor may not be suitable for display because of the high resolution of the data. To display or save the output of this image, use the JAIDataConvert actor to cast the data to an appropriate type (for instance, byte). For images with non-floating point data, the theoretical output range of -pi to pi, gets mapped to 0 to MAX_VALUE, where MAX_VALUE is the largest representable number of the data type. If the input is floating point data, then it returns the value given by java.lang.math.atan2().

    Since:
    Ptolemy II 3.1p
    Version:
    $Id$
    Author:
    James Yeh
    See Also:
    JAIDataConvert
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)