Fabric defect detection using local homogeneity and morphological image processing | Synapse