Package science.aist.imaging.api
Class GenericImageFunction<I,O,I2,O2>
- java.lang.Object
-
- science.aist.imaging.api.GenericImageFunction<I,O,I2,O2>
-
- Type Parameters:
I
- Input type of this generic image functionO
- Output type of this generic image functionI2
- Input type of the wrapped image functionO2
- Output type of this generic image function
- All Implemented Interfaces:
Function<ImageWrapper<I>,ImageWrapper<O>>
,ImageFunction<I,O>
public class GenericImageFunction<I,O,I2,O2> extends Object implements ImageFunction<I,O>
Generic image function that enables the interoperability between different
ImageWrapper
implementationsNote: The
GenericImageFunction
converts the input as well as the output images 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 GenericImageFunction(Function<ImageWrapper<I2>,ImageWrapper<O2>> function, Class<I2> functionInputType, Class<O> outputType)
Constructor of a GenericImageFunctionGenericImageFunction(Function<ImageWrapper<I2>,ImageWrapper<O2>> function, ImageFactory<I2> functionInputFactory, ImageFactory<O> outputFactory)
Constructor of a GenericImageFunction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<O>
apply(ImageWrapper<I> image)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.ImageFunction
andThen, andThenCloseInput, andThenConsumeInput
-
-
-
-
Constructor Detail
-
GenericImageFunction
public GenericImageFunction(Function<ImageWrapper<I2>,ImageWrapper<O2>> function, Class<I2> functionInputType, Class<O> outputType)
Constructor of a GenericImageFunction- Parameters:
function
- wrapped function to be appliedfunctionInputType
- input type of the wrapped(!) functionoutputType
- output type of the generic function
-
GenericImageFunction
public GenericImageFunction(Function<ImageWrapper<I2>,ImageWrapper<O2>> function, ImageFactory<I2> functionInputFactory, ImageFactory<O> outputFactory)
Constructor of a GenericImageFunction- Parameters:
function
- wrapped function to be appliedfunctionInputFactory
- Factory of the input type of the wrapped(!) functionoutputFactory
- Factory of the output type of the generic function
-
-
Method Detail
-
apply
public ImageWrapper<O> apply(ImageWrapper<I> image)
-
-