Machine Vision Based Inspection: Case Studies on 2D Illumination Techniques and 3D Depth Sensors