EdgeDrawingParams constructor
EdgeDrawingParams({
- int AnchorThresholdValue = 0,
- int EdgeDetectionOperator = PREWITT,
- int GradientThresholdValue = 20,
- double LineFitErrorThreshold = 1.0,
- double MaxDistanceBetweenTwoLines = 6.0,
- double MaxErrorThreshold = 1.3,
- int MinLineLength = -1,
- int MinPathLength = 10,
- bool NFAValidation = true,
- bool PFmode = false,
- int ScanInterval = 1,
- double Sigma = 1.0,
- bool SumFlag = true,
Implementation
factory EdgeDrawingParams({
int AnchorThresholdValue = 0,
int EdgeDetectionOperator = PREWITT,
int GradientThresholdValue = 20,
double LineFitErrorThreshold = 1.0,
double MaxDistanceBetweenTwoLines = 6.0,
double MaxErrorThreshold = 1.3,
int MinLineLength = -1,
int MinPathLength = 10,
bool NFAValidation = true,
bool PFmode = false,
int ScanInterval = 1,
double Sigma = 1.0,
bool SumFlag = true,
}) {
final p = calloc<cvg.EdgeDrawingParams>()
..ref.AnchorThresholdValue = AnchorThresholdValue
..ref.EdgeDetectionOperator = EdgeDetectionOperator
..ref.GradientThresholdValue = GradientThresholdValue
..ref.LineFitErrorThreshold = LineFitErrorThreshold
..ref.MaxDistanceBetweenTwoLines = MaxDistanceBetweenTwoLines
..ref.MaxErrorThreshold = MaxErrorThreshold
..ref.MinLineLength = MinLineLength
..ref.MinPathLength = MinPathLength
..ref.NFAValidation = NFAValidation
..ref.PFmode = PFmode
..ref.ScanInterval = ScanInterval
..ref.Sigma = Sigma
..ref.SumFlag = SumFlag;
return EdgeDrawingParams.fromPointer(p);
}