different enhancement method for different sensor type
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user