/// <summary> /// Constructor with ImageProcessingResult /// </summary> public FaceResult(ImageProcessingResult result) { if (result == null) { return; } HeadFound = result.HeadFound; HeadFoundOnColorObject = result.HeadFoundOnColorObject; HeadBoxRegion = result.HeadBoxRegion; }
/// <summary> /// Equals /// </summary> public override bool Equals(object obj) { if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } // safe because of the GetType check RectangleType cust = (RectangleType)obj; if (cust.Sx != Sx || cust.Sy != Sy || cust.Ex != Ex || cust.Ey != Ey) { return(false); } return(true); }