Dual Stage Image Analysis for a complex pattern classification task: Ham veining defect detection