This commit is contained in:
nuknal
2024-08-27 17:24:07 +08:00
parent 6f2cfa797a
commit ce0a4fc370
7 changed files with 173 additions and 79 deletions

View File

@@ -78,7 +78,6 @@ func (r *Registrator) SceneImageTime(scene *Scene) (start, center, end time.Time
// FIXME: This function is not accurate enough. 四元数、成像时刻、GPS 等需要修改为插值获取
func (r *Registrator) SetSceneBoundary(scene *Scene) (topLeft, bottomRight orb.Point) {
log.Info("using attitude quaternion to calculate image boundary...")
line0Start := r.calculateLatLonH(scene, 0, 0, 0)
line0End := r.calculateLatLonH(scene, 0, scene.Width, 0)
lineNStart := r.calculateLatLonH(scene, scene.Height, 0, 0)