Core: Implement std dev filtering for IP

We remove points that have a disparity value too different from their
neighbors. To keep comparisons simple, we project all disparities onto
the vector of the mean of the neighbors (excluding self).