Some studies on image analysis techniques for the detection and classification of defects in woven fabrics