Robust Pixel Classification for 3D Modeling with Structured Light