Package com.revrobotics
Class ColorMatchResult
- java.lang.Object
-
- com.revrobotics.ColorMatchResult
-
public class ColorMatchResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description edu.wpi.first.wpilibj.util.Color
color
double
confidence
-
Constructor Summary
Constructors Constructor Description ColorMatchResult(edu.wpi.first.wpilibj.util.Color color, double confidence)
Construct a color match result object.
-
-
-
Constructor Detail
-
ColorMatchResult
public ColorMatchResult(edu.wpi.first.wpilibj.util.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 objectconfidence
- confidence number for the measurement. This is the 1 - euclidean distance of the two color vectors
-
-