different enhancement method for different sensor type

This commit is contained in:
nuknal
2024-07-18 10:24:07 +08:00
parent 17124e8396
commit 0d1fea2f5d
5 changed files with 21 additions and 13 deletions

View File

@@ -35,9 +35,9 @@ type RadiationConfig struct {
}
type BrowserImgConfig struct {
Enhancement string `yaml:"enhancement" mapstructure:"enhancement"`
CumulativeCutLower float64 `yaml:"cumulative_cut_lower" mapstructure:"cumulative_cut_lower"`
CumulativeCutUpper float64 `yaml:"cumulative_cut_upper" mapstructure:"cumulative_cut_upper"`
Enhancement map[string]string `yaml:"enhancement" mapstructure:"enhancement"`
CumulativeCutLower float64 `yaml:"cumulative_cut_lower" mapstructure:"cumulative_cut_lower"`
CumulativeCutUpper float64 `yaml:"cumulative_cut_upper" mapstructure:"cumulative_cut_upper"`
}
var GCONFIG Config
@@ -66,7 +66,11 @@ func init() {
HFBandStopWidth: 24,
},
BrowserImg: BrowserImgConfig{
Enhancement: "StretchToCumulativeCutMinMax",
Enhancement: map[string]string{
"MSS": "StretchToCumulativeCutMinMax",
"PAN": "StretchToMinimumMaximum",
"FUS": "StretchToCumulativeCutMinMax",
},
CumulativeCutLower: 0.01,
CumulativeCutUpper: 0.99,
},