Do RRC with histogram LUT, ineffective!
This commit is contained in:
@@ -15,6 +15,8 @@ import (
|
||||
var (
|
||||
params producer.Params
|
||||
saveStrip bool
|
||||
doRRC bool
|
||||
lutDir string
|
||||
)
|
||||
|
||||
var procCmd = &cobra.Command{
|
||||
@@ -44,7 +46,9 @@ var procCmd = &cobra.Command{
|
||||
godal.RegisterAll()
|
||||
os.MkdirAll(params.OutputDir, 0755)
|
||||
|
||||
reg.DoRRC()
|
||||
if doRRC {
|
||||
reg.DoRRC(lutDir)
|
||||
}
|
||||
|
||||
if err := reg.DoPhaseCorrelation(); err != nil {
|
||||
logrus.Fatal(err)
|
||||
@@ -93,6 +97,8 @@ func init() {
|
||||
procCmd.Flags().BoolVarP(¶ms.SubScenes, "sub-scenes", "", false, "process sub-scenes")
|
||||
procCmd.Flags().BoolVarP(&saveStrip, "save-strip", "", false, "save original and registered images as GDAL GTiff")
|
||||
procCmd.Flags().StringVarP(¶msXML, "params", "x", "", "params xml file path")
|
||||
procCmd.Flags().StringVarP(&lutDir, "lut", "l", "data/lut", "LUT directory")
|
||||
procCmd.Flags().BoolVarP(&doRRC, "rrc", "", false, "do RRC")
|
||||
}
|
||||
|
||||
func initParams() producer.Params {
|
||||
|
||||
Reference in New Issue
Block a user