コード例 #1
0
        public GeorefInfo GetImageGeolocation()
        {
            if (georefInfo == null)
            {
                georefInfo = new GeorefInfo();
                georefInfo.up_left_corner      = GetPixelGeolocation(0, 0);
                georefInfo.up_right_corner     = GetPixelGeolocation(0, camera.imageWidth - 1);
                georefInfo.bottom_left_corner  = GetPixelGeolocation(camera.imageHeight - 1, 0);
                georefInfo.bottom_right_corner = GetPixelGeolocation(camera.imageHeight - 1, camera.imageWidth - 1);
                georefInfo.center = GetPixelGeolocation(camera.imageHeight / 2, camera.imageWidth / 2);
            }

            return(georefInfo);
        }
コード例 #2
0
 public void Init(Telemetry telemetry)
 {
     this.nedFrame.Init(telemetry);
     this.cameraNED  = nedFrame.BODYtoLNED(camFrame.CamBODY);
     this.georefInfo = null;
 }
コード例 #3
0
ファイル: Geolocation.cs プロジェクト: KAW0/Alter-Native
 public void Init(Telemetry telemetry)
 {
     this.nedFrame.Init(telemetry);
     this.cameraNED = nedFrame.BODYtoLNED(camFrame.CamBODY);
     this.georefInfo = null;
 }
コード例 #4
0
ファイル: Geolocation.cs プロジェクト: KAW0/Alter-Native
        public GeorefInfo GetImageGeolocation()
        {
            if (georefInfo == null)
            {
                georefInfo = new GeorefInfo();
                georefInfo.up_left_corner = GetPixelGeolocation(0, 0);
                georefInfo.up_right_corner = GetPixelGeolocation(0, camera.imageWidth - 1);
                georefInfo.bottom_left_corner = GetPixelGeolocation(camera.imageHeight - 1, 0);
                georefInfo.bottom_right_corner = GetPixelGeolocation(camera.imageHeight - 1, camera.imageWidth - 1);
                georefInfo.center = GetPixelGeolocation(camera.imageHeight / 2, camera.imageWidth / 2);
            }

            return georefInfo;
        }