gdal_sieve(1) on Linux
The text 0d5107bb0311, as Debian 9 (Stretch) shipped it.
removes small raster polygons
Flags it lists
-
-mask -
-o -
-of -
-st