相邻列均衡算法(张兵,2006)

This commit is contained in:
nuknal
2024-06-18 16:19:33 +08:00
parent d1733d0828
commit 6e5ffe1ab2
3 changed files with 46 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ import (
var (
params producer.Params
saveStrip bool
doRRC bool
doLUTRRC bool
doMomentMatching bool
lutDir string
)
@@ -47,8 +47,8 @@ var procCmd = &cobra.Command{
godal.RegisterAll()
os.MkdirAll(params.OutputDir, 0755)
if doRRC {
reg.DoRRC(lutDir)
if doLUTRRC {
reg.DoRRCbyLUT(lutDir)
}
if doMomentMatching {
@@ -102,8 +102,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")
procCmd.Flags().StringVarP(&lutDir, "lut-dir", "", "data/lut", "LUT directory")
procCmd.Flags().BoolVarP(&doLUTRRC, "lut-rrc", "", false, "do RRC with LUT method")
procCmd.Flags().BoolVarP(&doMomentMatching, "mm", "", false, "do moment matching")
}