示例#1
0
 public override double distance(Emgu.CV.Structure.Bgra color, IColorComparison comp, byte transparencyThreshold)
 {
     if (count == 0)
     {
         return(Int32.MaxValue);
     }
     return(comp.Distance(color.ToLab(), labColor));
 }
 public override double distance(SKColor color, IColorComparison comp, byte transparencyThreshold)
 {
     if (count == 0 || Deleted) // if count is zero or the color was deleted, don't use for computation
     {
         return(Int32.MaxValue);
     }
     return(comp.Distance(color.SKToLab(), labColor));
 }