示例#1
0
 public void Initialize(Size imageSize, Func <long, PointF> getCalibrationOrigin)
 {
     this.imageSize = imageSize;
     SetOrigin(imageSize.Center());
     this.getCalibrationOrigin = getCalibrationOrigin;
     initialized = true;
     ComputeCoordinateSystemGrid();
 }
示例#2
0
        private PointF GetCalibrationOrigin(long time)
        {
            if (captureKVA)
            {
                return(imageSize.Center());
            }

            // When using CalibrationLine and a tracked coordinate system,
            // this function retrieves the coordinates origin based on the specified time.
            return(trackabilityManager.GetLocation(drawingCoordinateSystem, "0", time));
        }
示例#3
0
        public void Reset()
        {
            SetOrigin(imageSize.Center());
            calibratorType  = CalibratorType.Line;
            calibrationLine = new CalibrationLine();
            calibrator      = calibrationLine;

            distortionHelper = new DistortionHelper();

            lengthUnit       = LengthUnit.Pixels;
            speedUnit        = SpeedUnit.PixelsPerSecond;
            accelerationUnit = AccelerationUnit.PixelsPerSecondSquared;

            ComputeCoordinateSystemGrid();
        }
示例#4
0
        public void Reset()
        {
            calibratorType   = CalibratorType.Line;
            calibrationPlane = new CalibrationPlane();

            PointF center = imageSize.Center();

            calibrationPlane.Initialize(100, center, new PointF(center.X + 100, center.Y), CalibrationAxis.LineHorizontal);

            calibrator = calibrationPlane;

            distortionHelper = new DistortionHelper();

            lengthUnit = LengthUnit.Pixels;

            ComputeCoordinateSystemGrid();
        }
        public void Reset()
        {
            calibratorType   = CalibratorType.Line;
            calibrationPlane = new CalibrationPlane();

            PointF center = imageSize.Center();

            calibrationPlane.Initialize(100, center, new PointF(center.X + 100, center.Y));

            //SetOrigin(imageSize.Center());
            calibrator = calibrationPlane;

            distortionHelper = new DistortionHelper();

            lengthUnit       = LengthUnit.Pixels;
            speedUnit        = SpeedUnit.PixelsPerSecond;
            accelerationUnit = AccelerationUnit.PixelsPerSecondSquared;

            ComputeCoordinateSystemGrid();
        }