filterSpecklesAsync function
Future<void>
filterSpecklesAsync(
- InputOutputArray img,
- double newVal,
- int maxSpeckleSize,
- double maxDiff, {
- OutputArray? buf,
Filters off small noise blobs (speckles) in the disparity map.
void cv::filterSpeckles (InputOutputArray img, double newVal, int maxSpeckleSize, double maxDiff, InputOutputArray buf=noArray())
https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#gabe331f205a6dd7a9aa5db8a38157d25b
Implementation
Future<void> filterSpecklesAsync(
InputOutputArray img,
double newVal,
int maxSpeckleSize,
double maxDiff, {
OutputArray? buf,
}) async {
buf ??= Mat.empty();
return cvRunAsync0(
(callback) => ccalib3d.cv_filterSpeckles(
img.ref,
newVal,
maxSpeckleSize,
maxDiff,
buf!.ref,
callback,
),
(c) => c.complete(),
);
}