I would recommend you the pointcloud library. It's similar to OpenCV, just for point clouds. A generic filter approach is to use a downsampling (see voxelgrid) first. Maybe you can skip this for pico flexx witk 38k points...
However, the next step may be the statistical outlier removal filter (see here). The SOR-filter is a bit expensive. You have to check whether it's worth or not...The contional outlier radius filter (link) was a bit faster in my case, but the result wasn't that satisfing as with the SOR.
So, that's already a bunch of filters.
Cheers
Matthias
P.S.
Just in case you haven't so far: Make sure you won't put any forces to the usb connector on the pico flexx. We made a huge effort to avoid any pulling on the cable but unfortunatly two cameras broke down.
I had to do some research on these filters (nice find, didn't know those were out there). Usually talking about "filtering" a set of sensor measurements involves a goal of what you're trying to remove. Whether its motion blur, extraneous points, bad edges (like the jump edge filter), low confidence points (intensity), or points with some criteria you don't like (too high, too low, too far).
So what are your filtering goals? What about your measurements are you trying to get rid of?
I'd start with ROS open cv: https://docs.opencv.org/3.2.0/d5/d69/...