Shape-Based Matching: Application of Defect Detection.