Package com.revrobotics
Class ColorMatchResult
java.lang.Object
com.revrobotics.ColorMatchResult
-
Field Summary
-
Constructor Summary
ConstructorDescriptionColorMatchResult
(Color color, double confidence) Construct a color match result object. -
Method Summary
-
Field Details
-
color
-
confidence
public final double confidence
-
-
Constructor Details
-
ColorMatchResult
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
-