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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceA pointwise operation that can be applied to any number of images.static interfaceA pointwise operation that can be applied to two images.static interfaceA pointwise operation that can be applied to three images.static interfaceA pointwise operation that can be applied to four images.static interfaceA pointwise operation that can be applied to a single image. -
Method Summary
Modifier and TypeMethodDescriptionapply(int[] colors, boolean[] inBounds) Applies this operation to the given colors and in-bounds flags.int
-
Method Details
-
apply
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 pointinBounds- 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
-