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).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean matches(Color c)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait