This commit is contained in:
nuknal
2024-05-25 19:43:17 +08:00
parent b9f61cd26f
commit e3d98cb959
6 changed files with 2122 additions and 166 deletions

18
main.go
View File

@@ -1,13 +1,31 @@
package main
import (
"github.com/airbusgeo/godal"
"github.com/sirupsen/logrus"
)
func init() {
logrus.SetFormatter(&logrus.TextFormatter{
ForceColors: true,
DisableColors: false,
TimestampFormat: "2006-01-02 15:04:05",
FullTimestamp: true,
})
}
func main() {
reg := NewRegistrator()
if err := reg.LoadMssRaw("/Users/lan/workspace/temp/ccv/ms_image.raw"); err != nil {
panic(err)
}
if err := reg.LoadPanRaw("/Users/lan/workspace/temp/ccv/pan_image.raw"); err != nil {
panic(err)
}
godal.RegisterAll()
if err := reg.DoDownPhaseCorrelation(); err != nil {
panic(err)
}