Gtiff
This commit is contained in:
18
main.go
18
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user