cv.filterSpeckles - MATLAB File Help
cv.filterSpeckles

Filters off small noise blobs (speckles) in the disparity map

img = cv.filterSpeckles(img, newVal, maxSpeckleSize, maxDiff)

Input

Output

See also