This paper deals with "on the fly" segmentation on sliding images. We describe a quality control industrial application for which that type of image analysis is an elegant solution. Local and global merging techniques on the region adjacency graph are discussed. Only local merging allows us to process an uncompletely known graph. Global merging on the entire graph and "on the fly" local merging give similar segmentation results, and yet the iatter is iaster.