Exemplo n.º 1
0
        public VisualOdometer(Capture capture, CameraParameters cameraParameters, HomographyMatrix birdsEyeViewTransformation, OpticalFlow opticalFlow)
        {
            m_Capture          = capture;
            m_CameraParameters = cameraParameters;

            this.GroundRegionTop = OdometerSettings.Default.GroundRegionTop;
            this.SkyRegionBottom = OdometerSettings.Default.SkyRegionBottom;

            this.OpticalFlow      = opticalFlow;
            m_RotationAnalyzer    = new RotationAnalyzer(this);
            m_TranslationAnalyzer = new TranslationAnalyzer(this, birdsEyeViewTransformation);
        }
Exemplo n.º 2
0
		public VisualOdometer(Capture capture, CameraParameters cameraParameters, HomographyMatrix birdsEyeViewTransformation, OpticalFlow opticalFlow)
		{
			m_Capture = capture;
			m_CameraParameters = cameraParameters;

			this.GroundRegionTop = OdometerSettings.Default.GroundRegionTop;
			this.SkyRegionBottom = OdometerSettings.Default.SkyRegionBottom;

			this.OpticalFlow = opticalFlow;
			m_RotationAnalyzer = new RotationAnalyzer(this);
			m_TranslationAnalyzer = new TranslationAnalyzer(this, birdsEyeViewTransformation);
		}