Do RRC by moment matching method

This commit is contained in:
nuknal
2024-06-17 17:28:15 +08:00
parent ce01f3b2ce
commit d1733d0828
5 changed files with 87 additions and 12 deletions

View File

@@ -13,10 +13,11 @@ import (
)
var (
params producer.Params
saveStrip bool
doRRC bool
lutDir string
params producer.Params
saveStrip bool
doRRC bool
doMomentMatching bool
lutDir string
)
var procCmd = &cobra.Command{
@@ -50,6 +51,10 @@ var procCmd = &cobra.Command{
reg.DoRRC(lutDir)
}
if doMomentMatching {
reg.DoMomentMatching()
}
if err := reg.DoPhaseCorrelation(); err != nil {
logrus.Fatal(err)
}
@@ -99,6 +104,7 @@ func init() {
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().BoolVarP(&doMomentMatching, "mm", "", false, "do moment matching")
}
func initParams() producer.Params {