Class EuclideanColorDistance
Calculates the distance between two colors using Euclidean distance in 3D RGB space. This measures the straight-line distance between the two points representing the colors.
Euclidean distance in RGB space is calculated as:
√((R2 - R1)² + (G2 - G1)² + (B2 - B1)²)
public class EuclideanColorDistance : IColorDistance
- Inheritance
-
EuclideanColorDistance
- Implements
- Inherited Members
Methods
- CalculateDistance(Color, Color)
Computes a similarity metric between two Color instances. A larger value indicates more dissimilar colors, while a smaller value indicates more similar colors. The metric is internally consistent for the given algorithm.