Implementation of the SLIC superpixel algorithm to work with OpenCV