DFT 带阻滤波器
This commit is contained in:
@@ -3,8 +3,9 @@ package config
|
||||
import "github.com/sirupsen/logrus"
|
||||
|
||||
type Config struct {
|
||||
CRConfig CoRegistrationConfig `yaml:"cr_config" mapstructure:"cr_config"`
|
||||
LogLevel logrus.Level `yaml:"log_level" mapstructure:"log_level"`
|
||||
CoRegistration CoRegistrationConfig `yaml:"coregistration" mapstructure:"coregistration"`
|
||||
Radiation RadiationConfig `yaml:"radiation" mapstructure:"radiation"`
|
||||
LogLevel logrus.Level `yaml:"log_level" mapstructure:"log_level"`
|
||||
}
|
||||
|
||||
type CoRegistrationConfig struct {
|
||||
@@ -16,7 +17,17 @@ type CoRegistrationConfig struct {
|
||||
CRBlockNH int `yaml:"cr_block_nh" mapstructure:"cr_block_nh"`
|
||||
OverlappedBlockLines int `yaml:"overlapped_block_lines" mapstructure:"overlapped_block_lines"`
|
||||
CRResampleMethod string `yaml:"cr_resample_method" mapstructure:"cr_resample_method"`
|
||||
FUSBandOrder string `yaml:"fu_band_order" mapstructure:"fu_band_order"`
|
||||
FUSBandOrder string `yaml:"fus_band_order" mapstructure:"fus_band_order"`
|
||||
}
|
||||
|
||||
type RadiationConfig struct {
|
||||
PANRemoveHfNoise bool `yaml:"pan_remove_hf_noise" mapstructure:"pan_remove_hf_noise"`
|
||||
MSSRemoveHfNoise bool `yaml:"mss_remove_hf_noise" mapstructure:"mss_remove_hf_noise"`
|
||||
SceneMomentMatching bool `yaml:"scene_moment_matching" mapstructure:"scene_moment_matching"`
|
||||
HfRadiusRatio float64 `yaml:"hf_radius_ratio" mapstructure:"hf_radius_ratio"`
|
||||
MinHistLevel float64 `yaml:"min_hist_level" mapstructure:"min_hist_level"`
|
||||
MaxHistLevel float64 `yaml:"max_hist_level" mapstructure:"max_hist_level"`
|
||||
HFBandStopWidth int `yaml:"hf_band_stop_width" mapstructure:"hf_band_stop_width"`
|
||||
}
|
||||
|
||||
var GCONFIG Config
|
||||
@@ -24,7 +35,7 @@ var GCONFIG Config
|
||||
func init() {
|
||||
GCONFIG = Config{
|
||||
LogLevel: logrus.DebugLevel,
|
||||
CRConfig: CoRegistrationConfig{
|
||||
CoRegistration: CoRegistrationConfig{
|
||||
MssBands: 4,
|
||||
PixelBytes: 2,
|
||||
PanWidth: 9344,
|
||||
@@ -35,5 +46,14 @@ func init() {
|
||||
CRResampleMethod: "down_sample_pan",
|
||||
FUSBandOrder: "RGB",
|
||||
},
|
||||
Radiation: RadiationConfig{
|
||||
PANRemoveHfNoise: true,
|
||||
MSSRemoveHfNoise: true,
|
||||
SceneMomentMatching: false,
|
||||
MinHistLevel: 0.3,
|
||||
MaxHistLevel: 0.6,
|
||||
HfRadiusRatio: 0.49,
|
||||
HFBandStopWidth: 24,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user