For research use, a generic labeling interface written with matlab