SegmentationMaskPainter constructor

SegmentationMaskPainter({
  1. required SegmentationMask mask,
  2. required Size originalSize,
  3. required double threshold,
  4. required bool binary,
  5. required Color maskColor,
  6. int? classIndex,
  7. bool showAllClasses = false,
  8. List<Color> classColors = const <Color>[],
})

Creates a painter for the given mask + styling.

Implementation

SegmentationMaskPainter({
  required this.mask,
  required this.originalSize,
  required this.threshold,
  required this.binary,
  required this.maskColor,
  this.classIndex,
  this.showAllClasses = false,
  this.classColors = const <Color>[],
});