C #include <cv.h> #include <highgui.h> #include <stdio.h> int main (int argc, char **argv) { int x, y; int width=1025, height=978; IplImage *img=0, *hsv_img=0; double c, f; // (1)allocate and initialize an image img = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 3); if(img==0) return -1; cvZero(img); hsv_img = cvCloneImage(img); cvCvtColor(img, hsv_img, CV_BGR2HSV); f = cvGetTickFrequency()*