/// <summary> /// Creates a <see cref="SingleLineCrossingDetector"/> using the provided coordinates for the start and end point of the line. /// </summary> /// <param name="a">The X coordinate of the first point of the line.</param> /// <param name="b">The Y coordinate of the first point of the line.</param> /// <param name="c">The X coordinate of the second point of the line.</param> /// <param name="d">The Y coordinate of the second point of the line.</param> /// <param name="threshold">The overlap fraction threshold for this detector to be considered occupied.</param> /// <param name="sFactor">The frame rate sampling factor.</param> public SingleLineCrossingDetector(int a, int b, int c, int d, double threshold, int sFactor) { line = new DetectionLine(a, b, c, d, threshold); lineCrossingDetector = new FallingEdgeCrossingDetector(sFactor); }
/// <summary> /// Creates a <see cref="SingleLineCrossingDetector"/> using the provided coordinates for the start and end point of the line. /// </summary> /// <param name="a">The X coordinate of the first point of the line.</param> /// <param name="b">The Y coordinate of the first point of the line.</param> /// <param name="c">The X coordinate of the second point of the line.</param> /// <param name="d">The Y coordinate of the second point of the line.</param> public SingleLineCrossingDetector(int a, int b, int c, int d) { line = new DetectionLine(a, b, c, d); lineCrossingDetector = new FallingEdgeCrossingDetector(1); }