Class JAIBorder

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

    public class JAIBorder
    extends Transformer
    Adds a border to an image. The amount to pad must be specified for all four sides. There are five different borders to choose from.

    Constant - A constant border adds constant values to the sides of the image. The user may specify either one constant to be applied to all bands, or one constant for each band.

    Copy - This border copys the edges of the original image, and uses it to fill in the border values.

    Reflect - This border reflects the edge of the image, and keeps flipping until it reaches the edge of the new image.

    Wrap - This border periodically repeats the image and clamps the size to only include what is specified.

    Zero - This border fills in the borders with zeros in each band.

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

      • constants

        public Parameter constants
        The constants to use if the Constant border type is chosen.
      • bottomPadding

        public Parameter bottomPadding
        The amount of pixels to pad the bottom with. The default is the integer value 0.
      • leftPadding

        public Parameter leftPadding
        The amount of pixels to pad the left side with. The default is the integer value 0.
      • rightPadding

        public Parameter rightPadding
        The amount of pixels to pad the right side with. The default is the integer value 0.
      • topPadding

        public Parameter topPadding
        The amount of pixels to pad the top with. The default is the integer value 0.