Class CalculateForegroundColorRatioFunction<T>
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.analysis.CalculateForegroundColorRatioFunction<T>
-
- All Implemented Interfaces:
ToDoubleFunction<ImageWrapper<T>>
public class CalculateForegroundColorRatioFunction<T> extends Object implements ToDoubleFunction<ImageWrapper<T>>
Calculates the ratio of a specific foreground color. Therefore it counts how many pixels equals foregroundColor. Then it returns count(pixels) / (width * height)
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description CalculateForegroundColorRatioFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
applyAsDouble(ImageWrapper<T> value)
-
-
-
Method Detail
-
applyAsDouble
public double applyAsDouble(ImageWrapper<T> value)
- Specified by:
applyAsDouble
in interfaceToDoubleFunction<T>
-
-