Skip to main content

Posts

Showing posts from January, 2012

getting SURF points of any image

this post uses OPENCV 2.2 and a simple change of the extract feature will allow use on version 2.3 class atsSURF { public:     cv::Mat extractPoints(cv::Mat img)     {         int minHessian = 500;         cv::SurfFeatureDetector detector(minHessian);         std::vector<cv::KeyPoint> keypoints;         detector.detect(img,keypoints,img); //opencv 2.2         //detector.detect(img,keypoints); //opencv 2.3         cv::SurfDescriptorExtractor extractor;         cv::Mat descriptor;         extractor.compute(img,keypoints,descriptor);         thisDescriptor = descriptor;         thisKeypoints = keypoints;         cv::Mat outim =...

Entropy and Gini index experiments

Conclusion: 1. Entropy and Gini index are unique when color and shape are different 2. Entropy and Gini Index are unique (Small Difference) Color remains the same but different shape 3. Entropy and Gini Index are unique (smaller difference) Color and shape are the same Area and size Shape and Color are the same, however entropy is unique, Gini Index is even more unique