EdgeDrawingParams constructor

EdgeDrawingParams({
  1. int AnchorThresholdValue = 0,
  2. int EdgeDetectionOperator = PREWITT,
  3. int GradientThresholdValue = 20,
  4. double LineFitErrorThreshold = 1.0,
  5. double MaxDistanceBetweenTwoLines = 6.0,
  6. double MaxErrorThreshold = 1.3,
  7. int MinLineLength = -1,
  8. int MinPathLength = 10,
  9. bool NFAValidation = true,
  10. bool PFmode = false,
  11. int ScanInterval = 1,
  12. double Sigma = 1.0,
  13. 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);
}