A new approach for defect detection in X-ray CT images