Package org.hildan.ocr
Class ColorSimilarityFilter
-
- All Implemented Interfaces:
-
org.hildan.ocr.ColorFilter
public final class ColorSimilarityFilter implements ColorFilter
A ColorFilter that matches colors that are close enough to the given referenceColor.
Colors are considered "close enough" to the reference color when each of the ARGB component is different from the corresponding component in the referenceColor by no more than the given rgbTolerance (or alphaTolerance, accordingly).
-
-
Constructor Summary
Constructors Constructor Description ColorSimilarityFilter(Color referenceColor, Integer rgbTolerance, Integer alphaTolerance)
-