PreprocessingStrategy constructor
const
PreprocessingStrategy({
- bool enableContrastEnhancement = false,
- bool enableBinarization = false,
- BinarizationType binarizationType = BinarizationType.otsu,
- bool enableNoiseReduction = false,
- double noiseReductionStrength = 0.5,
- bool enableEdgeDetection = false,
- bool enableSharpening = false,
- double sharpeningAmount = 1.0,
- bool enableGammaCorrection = false,
- double gamma = 0.6,
Implementation
const PreprocessingStrategy({
this.enableContrastEnhancement = false,
this.enableBinarization = false,
this.binarizationType = BinarizationType.otsu,
this.enableNoiseReduction = false,
this.noiseReductionStrength = 0.5,
this.enableEdgeDetection = false,
this.enableSharpening = false,
this.sharpeningAmount = 1.0,
this.enableGammaCorrection = false,
this.gamma = 0.6,
});