public VisionForm(SimpleVisionOperations mainPort, ImageProcessingResult result) { InitializeComponent(); _mainPort = mainPort; _result = result; }
private static Mock <IImageHandler> SetupImageHandler(IImage image, ImageProcessingResult imageProcessingResult) { Mock <IImageHandler> imageHandlerMock = new Mock <IImageHandler>(); imageHandlerMock.Setup(handler => handler.ProcessImage(image)) .Returns(imageProcessingResult); return(imageHandlerMock); }
/// <summary> /// Constructor with ImageProcessingResult /// </summary> public FaceResult(ImageProcessingResult result) { if (result == null) { return; } HeadFound = result.HeadFound; HeadFoundOnColorObject = result.HeadFoundOnColorObject; HeadBoxRegion = result.HeadBoxRegion; }
/// <summary> /// Constructor with ImageProcessingResult /// </summary> public HandGestureResult(ImageProcessingResult result) { if (result == null) { return; } _leftHandGestureFound = result.LeftHandGestureFound; _leftHandX = result.LeftHandX; _leftHandY = result.LeftHandY; _rightHandGestureFound = result.RightHandGestureFound; _rightHandX = result.RightHandX; _rightHandY = result.RightHandY; _headFound = result.HeadFound; _objectFound = result.ObjectFound; }
/// <summary> /// Constructor with ImageProcessingResult /// </summary> public ObjectResult(ImageProcessingResult result) { if (result == null) { return; } ObjectFound = result.ObjectFound; XMean = result.XMean; YMean = result.YMean; Area = result.Area; XStdDev = result.XStdDev; YStdDev = result.YStdDev; MotionFound = result.MotionFound; XMotion = result.XMotion; YMotion = result.YMotion; MotionSize = result.MotionSize; }