opencv版本:
vector<KeyPoint> keypoints;
SimpleBlobDetector::Params params;
params.filterByArea = true;
params.minArea = 2;
params.maxArea = 100;
IplImage* img_cpu_AA = cvLoadImage(path_image[INTERVAL_IMAGE + COUNT_sumNUM - 1], 1);
SimpleBlobDetector blobDetector(params );
blobDetector.create("SimpleBlob");
blobDetector.detect(SUM_image4_candy, keypoints );
drawKeypoints(img_cpu_AA, keypoints, SUM_image5_blob, Scalar(0, 0, 255));