Pattern extraction from northern Thai fabrics using flexibly matching segments: Sarong Teenjok and Lanna textiles | IEEE Conference Publication | IEEE Xplore