Abstract:This paper describes an efficient approach for labelling images using a combination of pipeline and host processing. The output of the algorithm is a coordinate list of labelled object pixels that facilitates further high level operations. It is an efficient labelling algorthm that measured wood surface defects by computer vision method.