Do RRC with histogram LUT, ineffective!

This commit is contained in:
nuknal
2024-06-17 10:59:48 +08:00
parent 35bf364e97
commit ce01f3b2ce
3 changed files with 12 additions and 7 deletions

View File

@@ -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(&params.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(&paramsXML, "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 {