The Sobel filter can be used for edge detection. There are two mask matrices that convolve with the image data (matrix). The images are grayscale.
It is one of the image segmentation techniques used in Computer Vision (CV) software in its initial preprocessing steps called early vision. After the early vision preprocessing a CV system can, for example, use artificial intelligence to identify, classify, or count objects in an image.