Package science.aist.imaging.api
Class GenericImageConsumer<I,I2,T>
- java.lang.Object
-
- science.aist.imaging.api.GenericImageConsumer<I,I2,T>
-
- Type Parameters:
I
- Input type of this generic image consumerI2
- Input type of the wrapped image consumerT
- type of the secondary consumed class
- All Implemented Interfaces:
BiConsumer<ImageWrapper<I>,T>
public class GenericImageConsumer<I,I2,T> extends Object implements BiConsumer<ImageWrapper<I>,T>
Generic image consumer that applies a wrapped consumer to a given image
Note: The
GenericImageConsumer
converts the input image if necessary, and for this effects the performance because of the required copy operation.- Since:
- 1.1
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description GenericImageConsumer(BiConsumer<ImageWrapper<I2>,T> consumer, Class<I2> consumerInputType)
GenericImageConsumer(BiConsumer<ImageWrapper<I2>,T> consumer, ImageFactory<I2> consumerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ImageWrapper<I> iImageWrapper, T t)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Constructor Detail
-
GenericImageConsumer
public GenericImageConsumer(BiConsumer<ImageWrapper<I2>,T> consumer, Class<I2> consumerInputType)
-
GenericImageConsumer
public GenericImageConsumer(BiConsumer<ImageWrapper<I2>,T> consumer, ImageFactory<I2> consumerFactory)
-
-
Method Detail
-
accept
public void accept(ImageWrapper<I> iImageWrapper, T t)
- Specified by:
accept
in interfaceBiConsumer<I,I2>
-
-