Application Of Three-Dimensional Segmentation Techniques For Product Defects Inspection