C++ #include <iostream> #include <string> #include <cv.h> #include <highgui.h> using namespace std; using namespace cv; int main(int argc, char *argv[]) { // (1)load Color Image const char *imagename = argc > 1 ? argv[1] : "../image/lenna.png"; Mat colorImage = imread(imagename,1); if(colorImage.empty()) return -1; // (2)convert Color Image to Grayscale for Feature Extraction Mat grayImage; cvtCol