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