gps image-time attitude 拟合精度

This commit is contained in:
nuknal
2024-09-05 15:10:21 +08:00
parent df6090df21
commit 52638b5ffe
8 changed files with 35 additions and 24 deletions

View File

@@ -56,8 +56,8 @@ type RPCModel struct {
// rational polynomial coeffients
func NewRPC(r *Registrator, scene *Scene, rpb string) *RPC {
rpc := RPC{
elevationLayer: 3,
gridsize: 19,
elevationLayer: 5,
gridsize: 20,
registrator: r,
scene: scene,
rpb: rpb,
@@ -97,6 +97,8 @@ func (rpc *RPC) generateVirtualGCP() {
rpc.scene.Height, rpc.scene.Width,
rpc.elevationLayer, int(rpc.minH), int(rpc.maxH))
ft, _ := os.Create("log/scene/" + rpc.scene.SceneId + ".time.txt")
defer ft.Close()
for _, p := range points {
p84 := rpc.registrator.calculateLatLonH(rpc.scene, p.Row, p.Col, p.H)
rpc.GCPs = append(rpc.GCPs, &GroundPoint{
@@ -106,6 +108,8 @@ func (rpc *RPC) generateVirtualGCP() {
Y: float64(p.Row),
X: float64(p.Col),
})
t, dt := rpc.registrator.ImageTime.Interp(p.Row+rpc.scene.Y, 16)
ft.WriteString(fmt.Sprintf("%d\t%.9f\t%.9f\n", p.Row, t, dt))
}
name := strings.Replace(rpc.scene.Tiff, ".tiff", ".gcp.geojson", -1)