In my code, i'm inserting the key points to a vector as shown in the code, can anyone tell me how to save this to a text file.
Mat object = imread("face24.bmp", CV_LOAD_IMAGE_GRAYSCALE);
if( !object.data )
{
// std::cout<< "Error reading object " << std::endl;
return -2;
}
//Detect the keypoints using SURF Detector
int minHessian = 500;
SurfFeatureDetector detector( minHessian );
std::vector<KeyPoint> kp_object;
detector.detect( object, kp_object );
i want to save the kp_object vecor to a text file.