Contribution to the image segmentation methods and machine-vision tracking