1. An image processing method for structured light profiling, said method comprising: sampling an image of a structured light pattern to obtain an intensity distribution; selecting a plurality of sets of sampled points from the intensity distribution, wherein each of the respective sets comprises a plurality of sampled points; fitting each of the sets of sampled points to a respective distribution function; and filtering the distribution functions to select a representative distribution function for the intensity distribution.