Files
sjy01-image-proc/main.go
nuknal e3d98cb959 Gtiff
2024-05-25 19:43:17 +08:00

33 lines
609 B
Go

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)
}
}