MATLAB File Help: cv.filterSpeckles Index
cv.filterSpeckles

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

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

Input

Output

See also