This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main(int argc, char *argv[]) | |
| { | |
| /* Load the image and convert to Lab colour space. */ | |
| auto image = cv::imread (argv[1], 1); | |
| auto lab_image = image.clone(); | |
| cv::cvtColor(image, lab_image, CV_BGR2Lab); | |
| /* Yield the number of superpixels and weight-factors from the user. */ | |
| int w = image.rows, h = image.cols; |