相邻列均衡算法(张兵,2006)
This commit is contained in:
10
cmd/proc.go
10
cmd/proc.go
@@ -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(¶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")
|
||||
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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user