SUB-PIXEL FEATURE EXTRACTION AND EDGE DETECTION IN 3-D MEASURING USING STRUCTURED LIGHTS