Package science.aist.imaging.api.compare
Class GenericImageCompareFunction
- java.lang.Object
-
- science.aist.imaging.api.compare.GenericImageCompareFunction
-
- All Implemented Interfaces:
ToBooleanBiFunction<ImageWrapper<?>,ImageWrapper<?>>
public class GenericImageCompareFunction extends Object implements ToBooleanBiFunction<ImageWrapper<?>,ImageWrapper<?>>
Generic image compare function, to compare any image wrappers, and check if they are equals. Allows to set a epsilon to configure when two values are seen as equal.
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description GenericImageCompareFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyAsBoolean(ImageWrapper<?> imageWrapper, ImageWrapper<?> imageWrapper2)
Applies this function to the given arguments.
-
-
-
Method Detail
-
applyAsBoolean
public boolean applyAsBoolean(ImageWrapper<?> imageWrapper, ImageWrapper<?> imageWrapper2)
Description copied from interface:ToBooleanBiFunction
Applies this function to the given arguments.- Specified by:
applyAsBoolean
in interfaceToBooleanBiFunction<ImageWrapper<?>,ImageWrapper<?>>
- Parameters:
imageWrapper
- the first function argumentimageWrapper2
- the second function argument- Returns:
- the function result
-
-