Class ColorMatchResult

java.lang.Object
com.revrobotics.ColorMatchResult

public class ColorMatchResult extends Object
  • Field Details

    • color

      public final Color color
    • confidence

      public final double confidence
  • Constructor Details

    • ColorMatchResult

      public ColorMatchResult(Color color, double confidence)
      Construct a color match result object. This object stores color which is a copy of the stored value registered to the ColorMatch object, and a confidence.

      The condifence is simply 1 - euclidian distance

      Parameters:
      color - copy of matched color from ColorMatch object
      confidence - confidence number for the measurement. This is the 1 - euclidean distance of the two color vectors