Interface PointwiseOperation<T>

Type Parameters:
T - the type of data that this operation generates
All Known Subinterfaces:
PointwiseOperation.Any<T>, PointwiseOperation.Binary<T>, PointwiseOperation.Ternary<T>, PointwiseOperation.Tertiary<T>, PointwiseOperation.Unary<T>
All Known Implementing Classes:
CachedConversionOperation, ChannelOperation, ColorToPaletteOperation, PaletteToColorOperation

public interface PointwiseOperation<T>
An operation that can be applied to the entirety of several images by being applied at any given point, to generate data for any given point
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A pointwise operation that can be applied to any number of images.
    static interface 
    A pointwise operation that can be applied to two images.
    static interface 
    A pointwise operation that can be applied to three images.
    static interface 
    A pointwise operation that can be applied to four images.
    static interface 
    A pointwise operation that can be applied to a single image.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int[] colors, boolean[] inBounds)
    Applies this operation to the given colors and in-bounds flags.
    int
     
  • Method Details

    • apply

      T apply(int[] colors, boolean[] inBounds)
      Applies this operation to the given colors and in-bounds flags.
      Parameters:
      colors - the colors of the images to apply this operation to at the given point
      inBounds - whether each image is in-bounds at the given point. At least one image will always be in-bounds
      Returns:
      the data generated at this point
    • expectedImages

      int expectedImages()
      Returns:
      how many images this operation expects to be applied to. Should return -1 if the operation can be applied to any number of images