Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void Init(Telemetry telemetry)
 {
     this.nedFrame.Init(telemetry);
     this.cameraNED  = nedFrame.BODYtoLNED(camFrame.CamBODY);
     this.georefInfo = null;
 }
Exemplo n.º 3
0
 public void Init(Telemetry telemetry)
 {
     this.nedFrame.Init(telemetry);
     this.cameraNED = nedFrame.BODYtoLNED(camFrame.CamBODY);
     this.georefInfo = null;
 }
Exemplo n.º 4
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;
        }