c++ port of the python code from https://github.com/gnebehay/CMT
based on paper Consensus-based Matching and Tracking of Keypoints for Object Tracking, Nebehay, Georg and Pflugfelder, Roman, 2014
If the initialise function is slow (seems to be the case in android), try to move the 2 lines :
detector = cv::Algorithm::createcv::FeatureDetector(detectorType.c_str()); descriptorExtractor = cv::Algorithm::createcv::DescriptorExtractor(descriptorType.c_str());
to the constructor.